Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 8
    Surely adding the 'required="true"' part to a readonly textbox in general is a bad idea. There could well be cases where that textbox doesn't get a value put into it. Then your form won't be submitted and there will be little the user can do about it. Commented Mar 6, 2014 at 12:16
  • 2
    This answer helped me start to discover the difference between disabled & readonly; readonly being what I ultimately needed to prevent user interaction but still submit the prior-entered value. See htmlcodetutorial.com/forms/_INPUT_DISABLED.html Commented Sep 19, 2014 at 21:37