Somewhat related to what what is being discussed here:
jQuery eq() loop
I have any number of elements that can be added to a page:
instead of doing this:
$('.taskName a:eq(1)').addClass('fixme');
$('.taskName a:eq(2)').addClass('fixme');
//can I programatically add more here as items get added instead of having to code 1,2,3,4 etc?
I would like to have a count done and have the number inside the eq() be incremented as a new element gets added.
I got around the other problems so I removed any code that is no longer needed for this question.
Not sure I get it, but I’ll try :
Adds the class to anchors inside elements with the matching titles ???