Dmitri's Javascript Quickstart
Here's the basic jQuery statement: $("CSS selector").
The CSS selector is a standard CSS3 selector. For example, you can use classes and IDs, such as .myClass > #MyID, so you could use: $(".myClass > #MyID")
That selects all elements that match the CSS selector. Then you can do stuff to those elements. For example, you could do something like this: $(".myClass > #MyID").hide(); This hides all elements matching the CSS selector. Basically, $("...") selects elements, then you can do actions to them, like $("...").hide();. That's the basic concept.
Another concept is bindings. You can "bind" the click event of an element to do something. For example, you can do
$('.myclass > #MyID').bind("click", function() { Do something here });
Time for a quiz:
I have this HTML: <div class="myClass" id="myDiv">Hi</div> How do I make myDiv hide when myDiv is clicked?
Correct answer: $('.myClass').bind("click", function() { $('.myClass').hide(); });
One more concept - chaining. There are many "action" functions. For example, there is .hide(), .css('Property', 'TheValueOfTheProperty') which assigns the css attribute Property to TheValueOfTheProperty on the elements. You can chain them, like
$('#myDiv').hide().bind('click', function() { $('#myDiv').show().css('color', 'pink'); });
This has two examples of chaining - one .hide().bind(), which hides the element and binds it, and .show().css(), which shows it and sets the CSS. The execution happens from left to right.
Dmitri did a coverage of jQuery at a Google Tech Talk: http://www.youtube.com/watch?v=8mwKq7_JlS8 .

Is the example correct?
Shouldn't the example be
<div class="myClass" id="myDiv">Hi</div>
to match the answer?
Shouldn't the answer be?
I'd say that the answer should be:
$('#myDiv').bind("click", function() { $(this).hide(); });since:
a) the question asks how to hide the div myDiv not all objects with the class myClass
and
b) surely you should use $(this) and not reselect the element clicked on to save computation time. Also if you are selecting for a class then the original code would hide all elements with the class myClass when any of them where clicked, which is not what the question asks for.