Here is my fiddle which will select checkbox in the page.
But i wanted to check the group of checkbox with common class name.
Here is the Jsfiddle I have for that.
How can i achieve this ?
Here's the Script i have so far
$(document).ready(function(){
$('.check:button').toggle(function(){
$('input:checkbox').attr('checked','checked');
$(this).val('uncheck all')
},function(){
$('input:checkbox').removeAttr('checked');
$(this).val('check all');
})
})
Aucun commentaire:
Enregistrer un commentaire