getting id of an html element using jquery code example
Example 1: get the id of a div in jquery
var rid = $(this).attr('id'); //for dynamically created elements
Example 2: store id of an element jquery
$(". only_this_class"). click(function() { var clickedId= $(this). attr("id"); alert(clickedId); });