O'Reilly logo

DOM Scripting: Web Design with JavaScript and the Document Object Model, Second Edition by Jeffrey Sambells, Jeremy Keith

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. DOM Scripting Libraries

Throughout the book you've focused on learning the basics of the DOM. You used the standard set of DOM methods to perform common tasks and learned how best to apply those methods in your scripts. You may have noticed that sometimes your code was a little verbose and repetitive. Restricting yourself to only DOM methods such as document.getElementById can get tiring, especially when libraries provide almost magical functions like $ that do even more.

Libraries are packages of reusable code that offer a number of advantages.

  • Their code has been tested and proven by a large user base.

  • They can easily fit into your existing development frameworks.

  • They provide quick, elegant solutions for most of your mundane day-to-day ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required