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