Friday, July 21, 2017 Page Options

Vashon Software

You are here > Blogola
By John on 6/7/2011 7:43 AM

The new jQuery 1.6 release splits DOM attributes and DOM properties into separate methods:

DOM attributes represent the state of DOM information as retrieved from the document, & DOM properties represent the dynamic state of the document. The performance benefits primarily appear to be realized when using .attr(“value) or .attr(“name”,”value”) and .data()’s getData and setData events.

One can now also specify relative values in CSS:

// Move an item 10px over $("#item").css("left", "+=10px"); .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode...
Skip Navigation Links.
Working the Digital Landscape
 Search the Blogs
Privacy Statement | Terms Of Use | 10506 SW 132nd Pl. | Vashon, WA 98070 | 206-914-3050