Soldato
- Joined
- 12 May 2007
- Posts
- 3,896
- Location
- Bristol
Does anyone know how to count specific items with jquery or js?
As an example..
I need a way to calculate that imagesPanel is the 3rd panel. Any ideas?
As an example..
Code:
<div id="accordion">
<h3>item</h3>
<div>panel</div>
<h3>item</h3>
<div>panel</div>
<h3>Images</h3>
<div id="imagesPanel">panel</div>
<h3>item</h3>
<div>panel</div>
</div>
I need a way to calculate that imagesPanel is the 3rd panel. Any ideas?