Faracus Posted June 17, 2009 Share Posted June 17, 2009 trying to create a form where the values are all pre-determined. Would I be able to make the input area where they can see the value, but not be able to adjust it? Link to comment Share on other sites More sharing options...
smerny Posted June 17, 2009 Share Posted June 17, 2009 <input type="text" name="textbox" value="this is text you cannot edit" disabled> Link to comment Share on other sites More sharing options...
Synook Posted June 17, 2009 Share Posted June 17, 2009 Or in XHTML: <input type="text" name="textbox" value="this is text you cannot edit" disabled="disabled" /> However, using theis method the "textbox" value will not be submitted. If you want the value to be readonly but still be submitted use the readonly attribute: <input type="text" name="textbox" value="this is text you cannot edit" readonly="readonly" /> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.