Skip to content

Instantly share code, notes, and snippets.

@michalczukm
Created April 28, 2014 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michalczukm/11384609 to your computer and use it in GitHub Desktop.
Save michalczukm/11384609 to your computer and use it in GitHub Desktop.
jQuery case insensitive search extension
$.expr[":"].ContainsCaseInsensitive = $.expr.createPseudo(function(arg) {
return function( elem ) {
return $(elem).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0;
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment