After using it for a few months and converting most of our sites to using it, I have had a few requests to do some training on jQuery. Hopefully this crash course will give you a basic overview of jQuery and what you can do with it.
A few things to know before we get started. jQuery needs to run from within the document.ready() function. When you start coding with jQuery use the following code to wrap your functions in.
$(document).ready(function(){
//begin your jQuery code here...
});
You may have noticed that I passed an anonymous function through the ready() function. This is called chaining, and it's one of the things jQuery does well, and often.
You can have multiple '$(document).ready()' functions, so don't worry too much about having different calls to it in your html or in your js files (you really should try to aim for only using one, but it isn't a requirement).
Now that we have that out of the way, use the Navigation above to view one of the bite-sized lesson chunks.