how to get id of a clicked element in jquery code example
Example: get the id of a div in jquery
var rid = $(this).attr('id'); //for dynamically created elements
var rid = $(this).attr('id'); //for dynamically created elements