Is there any way that I can get the id of an element from something like:
Some text
Use "attr" method in jquery.
$('.test').click(function(){ var id = $(this).attr('id'); });