jQuery is a fantastic abstraction over browser javascript engines. It allows you to write cross-browser javascript and also makes building event-driven actions in the browser easy.

In their words:

jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensbility, jQuery has changed the way that millions of people write JavaScript.


Tips for using JQuery and IE8

  • Don't use "asdf".trim() instead, use $.trim("asdf")
  • Don't set explicit CSS values for display, instead use $("#ele").show()
  • When using live("click"), to get the element being acted on use, evt.target, not evt.toElement