Saturday, 7 September 2013

How to get the id of the element clicked using jquery

How to get the id of the element clicked using jquery

<div class="main_div">
<div id="inner_div">
<span id="d1" class="get_clicked">click to get id</span>
</div>
</div>
How the get the id of the span when clicked? How to do this using jquery?

No comments:

Post a Comment