Help me to find out to show a div if two or more check box are checked using JQuery only. Please let me know the very simple one.
+1
A:
jQuery:
$('input[type=checkbox]').change(function(){
if($('input:checked').size() > 1){
$("div").show();
}
else {
$('div').hide()
}
})
HTML:
<input type="checkbox" id="one"></input>
<input type="checkbox" id="one"></input>
<input type="checkbox" id="one"></input>
<div style="display: none;">At least 2 are checked</div>
Adam
2010-10-21 19:35:36
Its solved my problem thanks !!! You're BEST!!!
SASHI
2010-10-22 07:53:09