You want to invoke the 'observe' method:
$$('').invoke('observe', 'onkeydown', function(){...})


On Mon, Sep 29, 2008 at 2:41 PM, Nik <[EMAIL PROTECTED]> wrote:

> Hello all,
> I am wishing to do something like this:
> $$('').invoke('onkeydown', function(){...})
> is that possible?
> Basically, I want to limit all the input field with 'info' class to
> allow only alphabets, number , backspace and space with a custom
> function.
> Thank You!
> >

You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at

Reply via email to