These are some very useful Jquery snippets which would come in handy while dealing with Jquery.
$("#chkAll").toggle( function() { $("input[@type='checkbox']").not('#chkAll').each(function() { this.checked = true; }); }, function() { $("input[@type='checkbox']").not('#chkAll').each(function() { this.checked = false; }); });});
$('#edit-checkbox-id').is(':checked');
$("#ID").hover(function () { // do mouse over something }, function () { // do mouse out something });
$("a[href^=http://]").not("a[href^=http://www.yourdomain]").attr("target", "blank");