Friday, November 20, 2009

JQuery Stuff

$(document).ready(function(){
// your code
});

Put this in your script type=".../javascript" to execute code before the page finishes loading.

********************************

$("[element name]").addClass("[css class name]");

This adds a css class to all elements of that element type.

********************************

For great JQuery effects

http://docs.jquery.com/Effects


********************************


$("a").click(function(event){ event.preventDefault(); $(this).hide("slow"); });


Example of using an effect.

No comments:

Post a Comment