[Javascript] turning readonly off?
Hakan M (Backbase)
hakan at backbase.com
Thu Jan 13 07:16:53 CST 2005
Since readonly is one of the old "short" HTML attributes (that you have
to specify with readonly="readonly" in XHTML) my guess would be to set
the attribute to nothing.
oInput.setAttribute('readonly', '');
You could also try oInput.removeAttribute('readonly');
Regards,
H
Bill & Janine Marriott wrote:
> Hi Everyone,
>
> I've got a question on the 'readonly' state of a form text input element.
>
> What is the proper syntax to turn the readonly state off in javascript?
>
> thanks
>
> Bill
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
More information about the Javascript
mailing list