Created
October 16, 2010 02:34
-
-
Save jamsesso/629323 to your computer and use it in GitHub Desktop.
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
/* Usage: | |
* Return element: elem("name-of-element"); | |
* Value of element: elem("name-of-element").val(); | |
* Any method in jQuery works here since it returns a jQuery object. | |
* */ | |
var elem = function(selector) | |
{ | |
return $("*[name="+ selector +"]"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment