Hi All

I'm attempting to extend the Form.Element.disable() method, so that it
adds a "disabled" class to any element is disables.

I'm attempting to replace the existing prototype function with one of
my own, using the following code in a javascript file loaded after

Form.Element.Methods.disable = function(element) {
    element = $(element);
    element.disabled = true;
    return element;

But it doesn't seem to replace the original prototype method.

Am I missing something?


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-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to