[jQuery] Re: Select "next" until specific element is reached

2008-12-05 Thread Karl Swedberg
one more thing ... those table rows are going to get mangled in FF. You're better off using toggle() without the speed or fadeIn() / fadeOut() --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Dec 5, 2008, at 5:04 PM, Karl Swedberg wrote: Hi Marc, This i

[jQuery] Re: Select "next" until specific element is reached

2008-12-05 Thread Karl Swedberg
Hi Marc, This is all untested, but you could try using John Resig's nextUntil() plugin [1] : $.fn.nextUntil = function(expr) { var match = []; // We need to figure out which elements to push onto the array this.each(function(){ // Traverse through the sibling nodes for