Using Prototype, the Form.Element.disable is said to be disabled the form as a whole. Is there any way to disable only one single input element at a time?
And when I try this:
$$('#signup .button')[0].disbled = false; ## didn't work
Sorry for all. Actually it works. But I have defined a disabled style in a stylesheet and the style doesn't got applied. Is there any workaround?
You want the disable method.
http://prototypejs.org/doc/latest/dom/Form/Element/disable/index.html
For example:
$(id).disable();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With