How to get the selected id of the div in jquery?
Posted
by Tarique Imam
on Stack Overflow
See other posts from Stack Overflow
or by Tarique Imam
Published on 2010-03-24T20:59:21Z
Indexed on
2010/03/24
21:03 UTC
Read the original article
Hit count: 236
jQuery
Hi
i have three divs like that:
<div id="1" >id="1"</div>
<div id="2">id="2"</div>
<div id="3">id="3"</div>
Now i want, when i click any of the div, jquery will get it id, i.e, if i click div 1, it will get 1 as its div id is 1.
any help will be great.
regards
© Stack Overflow or respective owner