Hi, I am having trouble with using Element.observe() with $$(). If I
have an element with id="id", I can do this:

$('id').observe('click', function() {alert('clicked');});

However, if I have elements with class="class", I can't do this:

$$('.class').observe('click', function() {alert('clicked');});

I know that $$() returns a document-order array of extended DOM
elements, but I have no idea how to use Element.observe() on the array
returned by $$().  Any help will be greatly appreciated.

- Paul
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to