Results 1 to 4 of 4
Feb 28, 2011, 14:08 #1
- Join Date
- Jun 2007
- San Diego, CA
- 0 Post(s)
- 0 Thread(s)
Can't get jQuery .prev to match my criteria
I'm looping through each counter on my page to modify those sections. When I try to use the syntax recommend in the jQuery API, however, I can't specify the prev function to match only certain criteria. I've tried...
However, the only thing I can get to work is...
var test = thisCounter.prev().prev();
that works now but it's pretty fragile given that the designers are likely to rework these sections from time to time. How can I grab the previous element which MATCHES my criteria?Whatever you can do or dream you can, begin it.
Boldness has genius, power and magic in it. Begin it now.
Chroniclemaster1, Founder of Earth Chronicle
A Growing History of our Planet, by our Planet, for our Planet.