Skip to content

Instantly share code, notes, and snippets.

@MartijnR
Created March 28, 2013 19:08
Show Gist options
  • Save MartijnR/5265925 to your computer and use it in GitHub Desktop.
Save MartijnR/5265925 to your computer and use it in GitHub Desktop.
takeout
(function($){
$.fn.takeOut = function($nodes){
return this.filter(function(){
for (var i = 0 ; i<$nodes.length ; i++){
if ($(this).is($nodes.eq(i))){
console.log('took out node: ', $(this));
return false;
}
}
return true;
});
};
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment