View Full Version : Lock Text Box
mark87
01-02-2005, 05:29 PM
Quick question : how do I lock a text box?
mark87
01-02-2005, 05:39 PM
SOLVED : onFocus="this.blur()" :)
A1ien51
01-02-2005, 06:25 PM
actually that is not solved if JavaScript is disabled!
You can use the disabled property or the readOnly property.
Eric
amarksri_mca
06-01-2009, 09:44 AM
I found that (readonly="readonly") is working fine for me.
like
<input name="startDate" id="startdate" size="12" type="text" value="12345" readonly="readonly" >
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.