How to alternate style (background color with jQuery) for div inside div with id="container" alternately (even and odd) if I have HTML like this:
<div>
<span>10%</span>
</div>
<div>
<span>20%</span>
</div>
<div>
<span>30%</span>
</div>
.....
.....
How can I select the divs with above 50% and highlight them using jQuery?
This seems to answer your original question: http://jsfiddle.net/DRMZz/1/
});