Last active
October 12, 2015 18:30
-
-
Save sarfraznawaz2005/5a48cc6b181b09f28d94 to your computer and use it in GitHub Desktop.
Extending jQuery selector engine
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
$.extend($.expr[':'],{ | |
inline: function(a) { | |
return $(a).css('display') === 'inline'; | |
} | |
}); | |
// $(':inline'); // Selects ALL inline elements |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment