On May 3, 2007, at 8:13 PM, Glen Lipka wrote:
Can jQuery access the <HTML> node and add a class to it?
Hey Glen, It sure can: $('html').addClass('foo');
Is this invalid XHTML?
Unfortunately, I think it is.
How does straight JS get the HTML node?
document.getElementsByTagName('html')[0] or document.getElementsByTagName('html').item(0) --Karl _________________ Karl Swedberg www.englishrules.com www.learningjquery.com