Is there any way that I can get the id of an element from something like:
Some text
$(".class").click(function(){ alert($(this).attr('id')); });
only on jquery button click we can do this class should be written there