Back at work, and it works like a charm. Thanks very much. - T.J.
On Dec 10, 12:41 pm, "T.J. Simmons" <theimmortal...@gmail.com> wrote: > Well the other errors don't exist in my live code; I just typed up the > page on jsbin real quick before a meeting to show what my problem was. > I appreciate you fixing that. :) > > And ah, that would make sense. I couldn't think of why .prev() > wouldn't work but like I said, not the best at traversing; haven't > used .prev() before. > > Thanks! > > T.J. Simmons > Sent from my iPhone > > On Dec 10, 2009, at 12:38 PM, Scott Sauyet <scott.sau...@gmail.com> > wrote: > > > > > On Dec 10, 12:36 pm, "T.J. Simmons" <theimmortal...@gmail.com> wrote: > >> Sorry, the right link ishttp://jsbin.com/ekuyo > > > It would probably be better to fix the other errors before posting an > > example. But I was in a good mood. :-) > > > http://jsbin.com/ivoyi(codehttp://jsbin.com/ivoyi/edit) > > > The problem is that "prev" returns only the immediate previous sibling > > of the selected element, and, if you supply a selector, won't return > > even that element if it doesn't match the selector. If you want the > > first prior sibling matching the selector, you can use "prevAll > > ('selector:first')". > > > Cheers, > > > -- Scott