Created
August 6, 2010 14:21
-
-
Save bgrins/511375 to your computer and use it in GitHub Desktop.
This file contains 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
/* | |
http://lanitdev.wordpress.com/2009/06/08/extending-jquery-to-select-asp-controls/ | |
Enables $(":asp(id)") selector in jQuery for dealing with ASP Server IDs in JavaScript | |
Example: $(":asp(txtPhoneNumber)") | |
*/ | |
jQuery.expr[':'].asp = function(elem, i, match) { | |
return (elem.id && elem.id.match(match[3] + "$")); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment