/* class="myclass" gets a red border */
$( ".myClass" ).css( "border", "3px solid red" );
/* id="target" gets a onClick function */
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
/* .html() and .text() */
<pre><p>This is a test.</p></pre>
$("pre").text()
"<p>This is a test.</p>"
$("pre").html()
"<p>This is a test.</p>"
/* Retrive and set attribute of element */
<input id="check1" type="checkbox" checked="checked">
$("#check1").attr('checked', true)
$("#check1").attr('checked')
=> undefined
$("#check1").attr('checked', true)
$("#check1").attr('checked')
=>"checked"