Created
March 25, 2013 21:59
-
-
Save JayDouglass/5241190 to your computer and use it in GitHub Desktop.
Generic way to find ASP control ids
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
String.prototype.endsWith = function(str) { | |
return (this.match(str + '$') == str) | |
} | |
jQuery.expr[":"].asp = function(a, i, m) { | |
return jQuery(a).attr('id') && jQuery(a).attr('id').endsWith(m[3]); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment