mercredi 7 octobre 2015

How to show a div box when user firstly checked a checkbox out of some checkboxes it may be 7 or more and hide?

I want to get appear a div box when user checks any first checkbox.

I have also tried following codes:

$('#checkbox').change(function() {
if ($(this:first).is(':checked')) {
console.log('Checked');
} else {
console.log('Unchecked');
}
});

But not working please tell me any correct method to do so.




Aucun commentaire:

Enregistrer un commentaire