I have a large list of check boxes all with unique id values. I\'d like to get the id of the checkbox that executes my JavaScript function. Can I d
id
You can get the target of the event using event.target.
$('input:checkbox[id]').change(function(event) { var checkboxID = $(event.target).attr('id'); alert(checkboxID); });
JSfiddle Demo