If I have ten divs created dynamically, each one given the class name 'createdDiv' on creation. How can I iterate through them after they are created and add a unique class name to each?
Somthing like,
for each('.createdDiv'){
var count = 1;
this.addClass('uniqueName' + count);
count ++;
}
So I would like to end up with 10 divs as follows,
('.createdDiv .uniqueName1')
('.createdDiv .uniqueName2')
('.createdDiv .uniqueName3')
('.createdDiv .uniqueName4')
and so on...