Skip to content

Instantly share code, notes, and snippets.

@sengertwd
Created January 17, 2014 16:49
Show Gist options
  • Save sengertwd/8476809 to your computer and use it in GitHub Desktop.
Save sengertwd/8476809 to your computer and use it in GitHub Desktop.
Sublime Text Snippet for quickly adding an event to an element(s) Instructions: * Install snippet * type 'jqev' * press tab * put jQuery selector * press tab * put the event type * press tab * if you need the event type the event * press tab * put code to run when the event fires
<snippet>
<content><![CDATA[
\$("$1").on("$2", function($3){
$4
});
]]></content>
<tabTrigger>jqev</tabTrigger>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment