How 'bout
$$('#div1 p span.someclassName').invoke('observe', 'click',
function(el)
Close enough?
--
Jonathan Rosenberg
Founder Executive Director, Tabby's Place
http://www.tabbysplace.org/
-Original Message-
From: prototype-scriptaculous@googlegroups.com
jQuery conflates the meaning of $ and $$ in a useful manner, but
Prototype provides the invoke function to shortcut what you are doing
here.
$$('#div1 p span.someclassName').invoke('observe','click', function(el)
{
alert('b');
});
To my mind, it's a little less magic and a lot more
: [Proto-Scripty] Binding functions to $$ directly
jQuery conflates the meaning of $ and $$ in a useful manner, but
Prototype provides the invoke function to shortcut what you are doing
here.
$$('#div1 p span.someclassName').invoke('observe','click', function(el)
{
alert('b');
});
To my mind