Hi, I have a collection of child div's inside the parent div,the child div's are generated dynamically and all has the same class name.
My question is how to apply different background color for each child div using jquery sample code below
<div id="someid">
<div class="bar">...</div>
<div class="bar">...</div>
<div class="bar">...</div>
<div class="bar">...</div>
<div class="bar">...</div>
</div>
Here i want to apply different background color for each child div( class="bars")
Thanks in advance.