[jQuery] Re: Most basic of basic fundamental questions.

2008-02-06 Thread Pickledegg
Danny, thanks for taking the time to explain this, I'm really grateful and 1 step closer to jQuery enlightenment. :) On Feb 5, 11:14 pm, Danny <[EMAIL PROTECTED]> wrote: > This is a critical point to "get" to use Javascript effectively. The > line > $('.poem-stanza').addClass('emphasized'); >

[jQuery] Re: Most basic of basic fundamental questions.

2008-02-05 Thread Danny
This is a critical point to "get" to use Javascript effectively. The line $('.poem-stanza').addClass('emphasized'); by itself is executed as soon as the interpreter gets to it. function(){ $('.poem-stanza').addClass('emphasized'); } doesn't execute the addClass; it just creates a function tha