extreme n00b is here ... I have a number of elements (dynamically generated back end, so there can be a lot of them), and all of them need a unique identifier. I am trying to figure out how to do wth jQuery, and not so well. Any help is appreciated.
In the code below, I would like each "bar" div to get a unique identifier, for example id1, id2, etc. etc.
<div class="foo"> <ul class="bar"> </ul> <ul class="bar"> </ul> <ul class="bar"> </ul> <ul class="bar"> </ul> </div>
jquery
jquery n00b
source share