root / snf-cyclades-app / synnefo / ui / new_ui / ui / javascripts / checkbox.js @ 8bcfec88
History | View | Annotate | Download (539 Bytes)
1 |
$(document).ready(function(){ |
---|---|
2 |
$('.select').click(function(event){ |
3 |
event.preventDefault(); |
4 |
var checkbox = $(this).find('.custom_checkbox'); |
5 |
if(checkbox.hasClass('checkbox-unchecked')){ |
6 |
checkbox.html('b');
|
7 |
checkbox.removeClass('checkbox-unchecked');
|
8 |
checkbox.addClass('checkbox-checked');
|
9 |
} |
10 |
else{
|
11 |
checkbox.html('a');
|
12 |
checkbox.removeClass('checkbox-checked');
|
13 |
checkbox.addClass('checkbox-unchecked');
|
14 |
} |
15 |
}); |
16 |
|
17 |
}); |