Disable a text box

kingesk
02-15-2002, 01:28 PM
Is there a way to make a text box disabled where the user can not change the value in the text box?




Response.write "<td> Completed Date: <Input Type='Text' Name=txtMarkDate Value='" & date & "' size='25' /> </td>"

orufet
02-15-2002, 01:40 PM
You can use the Disabled attribute, I believe.

kingesk
02-15-2002, 02:44 PM
Thanks.




Response.write "<td><B> Date:</B> <Input Type='Text' Name=txtNewRequestDate Value='" & date & "' Disabled='yes' size='25' /> </td>"

kingesk
02-15-2002, 08:12 PM
Another way, especially if you still need to reteive the information to update a database is to make it ReadOnly.



<td><B> Date:</B> <Input Type='Text' Name=txtNewRequestDate Value='" & date & "' ReadOnly='yes' size='25' /> </td>

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum