On 8/17/07, Matt Kruse <[EMAIL PROTECTED]> wrote:
>
>
> I want to do this:
> $('#test').click("alert('test');");
>
>
Hello Matt,

IMHO, I've seen code like this, but I got confused each time I read it.
I find using anonymous a better approach because it encapsulate the
whole code that will show in the click event, so I don't mess up with
anything else.

On 8/17/07, John Resig <[EMAIL PROTECTED]> wrote:

> $(...).onclick().toggle().end();
>

The same would happen to John's code, this would mess me up.
Just my opinion tho.

Regards,

-- 
Joan Piedra || Frontend webdeveloper
http://joanpiedra.com/

Reply via email to