IF you have only one check box group in the form
$('input:checkbox:checked').each(function(i){
alert($(this).val());
});
If you have many check box group you have to mention the group name
$('input:checkbox[name=checkboxname]:checked').each(function(i){
alert($(this).val());
});
$('input:checkbox:checked').each(function(i){
alert($(this).val());
});
If you have many check box group you have to mention the group name
$('input:checkbox[name=checkboxname]:checked').each(function(i){
alert($(this).val());
});
No comments:
Post a Comment