I've got an ajax loaded image gallery that loads an image to the dom and then removes it and loads in the next one and rotates in that way.
Next to where the image comes in i've got a list of static names (they're there on page load and don't do anything) for the images.
What i want to do is as the image is loaded into the dom, i want to match part of it's src attribute to the class / id / rel / whatever of the name in the list.
The desired result is that as the image displays, it's name gets underlined and then when it goes it's name is not underlined anymore as the next images name has now become underlined...
I'm having real trouble with this, if anyone can show me how to do this i would be really bloody grateful!
Thank you!