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
If this points to your checkbox, then you would get the id using $(this).attr('id')
this
$(this).attr('id')
For example:
$('input:checkbox').click(function(){ var id = $(this).attr('id'); // do something with id });
See DEMO.