Why aren't you using any of the Prototype code for finding elements
and attaching event observers?
$$('input[type=text]).each(function(input){
input.observe('keypress', function(event){ alert('key press!'); });
});
// or cleaner...
$$('input[type=text]).invoke('observe', 'keypress', function(event){
alert('key press!'); });
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---