Skip to content

Instantly share code, notes, and snippets.

@darwin
Created January 21, 2009 17:21
Show Gist options
  • Save darwin/50046 to your computer and use it in GitHub Desktop.
Save darwin/50046 to your computer and use it in GitHub Desktop.
// jQuery 1.3 way of doing filters
// example: $('div.items:reallyvisible').hide()
$.extend($.expr[":"], {
reallyvisible: function(el) {
return !(jQuery(el).is(':hidden') || jQuery(el).parents(':hidden').length);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment