This should work... but it is a little wasteful as it performs the same search on h2s over and over again. Another way (that I'm not sure will work) is:

var h2cache = $('h2');
var prevIndex = h2cache.index( $('#h2b')[0] ) - 1;
h2cache.filter(':eq('+prevIndex+')');
This is *exactly* what I needed, and works as is! Thanks very much.

I'm not sure if there is an easier way... but I'm sure someone will correct me if there is :)
If there is, that would be great, but your solution does the job.

 ~ ~ Dave

Reply via email to