How to select divs that are with same name, but to select them separate ?
<div id='wholestuff'>
<div id='item'>
info something
</div>
<div id='item'>
info something
</div>
<div id='item'>
else
</div>
<div id='item'>
stuff
</div>
<div id='item'>
info something
</div>
<div id='item'>
info something
</div>
</div>
And i want to select the second div with id item .. how to do that ?
It’s not advisable to give different elements the same id. Id’s have to be unique. You are grouping your ‘items’ within div#wholestuff, so if you want the second element, that would be: