How to get the selected id of the div in jquery?
- by Tarique Imam
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