Tuesday, June 24, 2008

jQuery is a new type of JavaScript library.

by Your Name 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

Query is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. jQuery is designed to change the way that you write JavaScript.

What does jQuery code look like? The quick and dirty:

$(”p.surprise”).addClass(”ohmy”).show(”slow”);

The above code snippet looks for all paragraphs that have a class
of ’surprise’, adds the class ‘ohmy’ to them, then slowly reveals them.
Click the ‘Run’ button to see it in action!

Comments 0 comments