JQuery - webstepbook.com
[Pages:23]jQuery
CS 380: Web Programming
What is jQuery?
jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. ()
Why learn jQuery?
Write less, do more:
$("p.neat").addClass("ohmy").show("slow" );
Performance Plugins It's standard ... and fun!
Example: Show/Hide Button
window.onload
We cannot use the DOM before the page has been constructed. jQuery gives us a more compatibile way to do this.
The DOM way window.onload = function() { // do stuff with the DOM }
$T(dhoceumdenitr)e.rcetadjyQ(fuunectriyont(r)a{n/s/ladotiostnuff with the DOM });
$T(fhunectijoQn(u) e{r/y/ wdoasytuff with the DOM });
Aspects of the DOM and jQuery
Identification: how do I obtain a reference to the node that I want.
Traversal: how do I move around the DOM tree.
Node Manipulation: how do I get or set aspects of a DOM node.
Tree Manipulation: how do I change the structure of the page.
The DOM tree
Selecting groups of DOM objects
name getElementById getElementsByTagName getElementsByName
querySelector *
querySelectorAll *
description
returns array of descendents with the given tag, such as "div"
returns array of descendents with the given tag, such as "div"
returns array of descendents with the given name attribute (mostly useful for accessing form controls)
returns the first element that would be matched by the given CSS selector string
returns an array of all elements that would be matched by the given CSS selector string
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
Related searches
- getroman com reviews
- acurafinancialservices.com account management
- acurafinancialservices.com account ma
- getroman.com tv
- http cashier.95516.com bing
- http cashier.95516.com bingprivacy notice.pdf
- connected mcgraw hill com lausd
- education.com games play
- rushmorelm.com one time payment
- autotrader.com used cars
- b com 2nd year syllabus
- gmail.com sign in