Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling a text box

Status
Not open for further replies.

murtazac

Programmer
Mar 25, 2004
4
US
Hey guys,
have another question..

i want to disablle a text box i.e grey it out after it has been populated with soem data..
here is my code for a regular editable text box with prepopulted data:

<tr>
<th align="right">Username:</th>
<td align="left" class="formTable"><html:text name="user" property="username"/><html:errors property="user"/></td>
</tr>
 
Hi,

<tr>
<th align="right">Username:</th>
<td align="left" class="formTable"><html:text name="user" property="username" disabled="true"/><html:errors property="user"/></td>
</tr>

Cheers
Venu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top