jQuery is a JS library. To use it you need to include it in your document like:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
Than you'll be able to manipulate your DOM elements/events doing crazy stuff like this:
<script>
$(function(){
$('body').prepend('HELLO EVERYONE!');
});
</script>
or like
To help you in your work Sublime has a possibility to easily include that jQuery library by creating a shortcut snippet, I'll show you how:
Tools > New Snippet...
<snippet>
<content><![CDATA[
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
]]></content>
<tabTrigger>jquery</tabTrigger> <!-- the text that using [Tab] will paste the snippet -->
</snippet>
File > Save As...
(Under Documents And Settings/yourUserName/Application Data/Sublime Text 2/Packages/User/ )
jquery.sublime-snippet
Restart Sublime type jquery
+ hit your TAB key and the jQuery library snippet will be included in your document.
The same way you can create your own snippets that you use over and over for example like
$(function(){
});
var intv = setInterval(function(){
}, 1000 );