I've got a page of checkbox that are styled. I'm trying to return their name or ID when they are changed.
I've created a fiddle here: http://ift.tt/29peJ1O
That shows the issue. The jquery I'm using is :
$(document).ready(function() {
$(this).change(function() {
alert($(this).attr("name"));
alert($(this).attr("id"));
});
});
Can anyone advise why this isn't working ?
Thanks
Aucun commentaire:
Enregistrer un commentaire