Created
September 29, 2009 17:38
-
-
Save cowboy/197071 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This has moved! Get it here: | |
// http://github.com/cowboy/jquery-misc/blob/master/jquery.ba-nextUntil.js | |
jQuery.fn.nextUntil = function( expr ) { | |
var elems = []; | |
this.nextAll().each(function(){ | |
return jQuery(this).is( expr ) | |
? false | |
: elems.push( this ); | |
}); | |
return this.pushStack( elems, 'nextUntil', expr ); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment