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!
Post a Comment