Skip to content

Instantly share code, notes, and snippets.

@johnw86
Created October 9, 2012 09:15
Snippets of helpful js to speed up dev
/* 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