On 1/10/06, Eugene Lazutkin <[EMAIL PROTECTED]> wrote:
>
> +1. I covered a similar question here:
> http://article.gmane.org/gmane.comp.web.dojo.user/2307/
>
> To sum it up: "disabled" is one of the most screwed up attributes. Try
> to avoid it, if possible.


I can't agree with this at all; it is often useful to disable and
re-enable form elements. You can use the regular DOM function
removeAttribute():

window.onload=function(){$("in1").removeAttribute("disabled");};
[...]
<input type="text"  disabled="true" id="in1"/>
[...]

chris

Reply via email to