...

View Full Version : disable a textfield



guran
08-03-2002, 12:19 AM
If your script program sends a value to a text field (on a buttonclick for an example) it's still possible for the user to enter different things on the same field so to speak " from the outside" How do one make a textfield disabled from anything else than the program itself ?

Algorithm
08-03-2002, 12:36 AM
<input type="text" disabled="disabled" readonly="readonly" />

Neither of these attributes are well-supported in older browsers, but they should do the trick.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum