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
prototype.js:

Form.Element.Methods.disable = function(element) {
    element = $(element);
    element.blur();
    element.disabled = true;
    element.addClassName("disabled");
    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 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.


Reply via email to