access id of a tag when clicked code example
Example: How to get anchor tag value using tag id
$("div#livesearch a"). on("click", function(){
$(this). text();
});
$("div#livesearch a"). on("click", function(){
$(this). text();
});