Created
January 17, 2014 16:49
-
-
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
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
<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