Skip to content

Instantly share code, notes, and snippets.

@alassek
Created March 31, 2009 21:57
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 alassek/88436 to your computer and use it in GitHub Desktop.
Save alassek/88436 to your computer and use it in GitHub Desktop.
//case-insensitive selector for ASP.Net ID's
//usage: $(':aspnetid(id)')
jQuery.extend(
jQuery.expr[":"],
{
aspnetid: function(a, i, m) {
return (new RegExp(m[3] + '$', 'i')).test(jQuery(a).attr('id'));
}
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment