[jQuery] Select elements in order
I want to select some items on my page in the order they appear, but
it seems that jQuery selects them in the order that my selectors are
written instead. So:
$('h1,h2,h3')
gets me all the h1s, then all the h2s, then all the h3s. Is there a
way to get them in the order they appear in my document instead?
Barring that, it's almost like I need a way to say "select all the
h2's after this h1 UNTIL you find another h1 or an h3 ... "
Any help would be appreciated!!
Rebecca
http://blog.rebeccamurphey.com