Created
October 9, 2012 09:15
-
-
Save johnw86/3857572 to your computer and use it in GitHub Desktop.
Snippets of helpful js to speed up dev
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
/* Faster get element by ID */ | |
var a = $(document.getElementById("elementID")); | |
/* Email address regex */ | |
^([\w-]+\.)*?[\w-]+@[\w-]+\.([\w-]+\.)*?[\w]+$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment