Jump to content

Forms Help


Faracus

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...