<div id="body"><h2>Some Header</h2>
<div class="contents"></div><p>Paragraph 1</p>
<p>Paragraph 2</p>
</div>
Paragraph 1
Paragraph 2
jQuery("a[target=_blank]")
.after("<small> (new window)</small>");
jQuery("form").submit(function(){
if ( jQuery("#name").val() == "" ) {
jQuery("span.help").show();
return false;
}
});
jQuery("a.menu").click(function(){
jQuery(this).next().toggle();
return false;
});
jQuery("a.menu").click(function(){
jQuery(this).next().slideToggle("slow");
return false;
});
jQuery("div.block").animate({
fontSize: "2em",
width: "+=20%",
backgroundColor: "green"
});
jQuery("div.block").hide("slow", function(){
jQuery(this).show("slow");
});
jQuery("div.load").load("file.html");
jQuery("div.load").load("file.html h2");
jQuery("div").hide();
jQuery("div").hide().css("color","blue");
jQuery("div").hide().css("color","blue").remove();
jQuery("<li><a></a></li>")
.find("a")
.attr("href", "http://ejohn.org/")
.html("John Resig")
.end()
.appendTo("ul");