Forums
This topic is locked
read only field
Posted 07 Jan 2004 08:59:16
1
has voted
07 Jan 2004 08:59:16 chris vass posted:
hi,i would like to ask if its possible to make not enable(read only) a text field using javascript
Replies
Replied 07 Jan 2004 17:42:07
07 Jan 2004 17:42:07 Marja Ribbers-de Vroed replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
hi,
i would like to ask if its possible to make not enable(read only) a text field using javascript
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Try:
<pre id=code><font face=courier size=2 id=code>document.yourForm.yourField.disabled = true;</font id=code></pre id=code>
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
hi,
i would like to ask if its possible to make not enable(read only) a text field using javascript
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Try:
<pre id=code><font face=courier size=2 id=code>document.yourForm.yourField.disabled = true;</font id=code></pre id=code>
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/