I try to wash the div as soon as a certain number of checkboxes are checked, but I cannot get it to work. I tried val and length , but I suppose that I do not believe the value of the correct path for the flags?
$('input:checkbox').change(
function(){
if ($(this).is(':checked').val > 2) {
alert('checked');
}
});
Any input would be greatly appreciated. Thank!
Myoji source
share