jQuery for Designers and Themers

Printer-friendly versionPrinter-friendly version

(notes on a session at DrupalCon 2010)

slides at http://tinyurl.com/jQuery-Designers

  • jQuery is a selector engine for CSS and XPath (actually, the engine is called Sizzle)
  • jQuery is a library for manipulating DOM (the live HTML of the page as understood by the browser)
  • demo: hacking the registration form to hide the email field with animation. requires editing theme .info file to load custom .js file
  • coolest documentation ever: http://visualjquery.com maybe a little out of date, but still awesome.
  • use focus() and other event functions to tie into user actions, for example in a form (examples)
  • jQuery UI is not jQuery, but requires jQuery. http://jqueryui.com
  • You can (and should) load just the parts you need rather than the whole library.use jquery_ui_add(array())