JQuery Get Element ID
$(this).attr('id')
Thoughtful Tortoise
$(this).attr('id')
var rid = $(this).attr('id'); //for dynamically created elements
alert($(this).attr('id'))