HTML Input Box - Disable

Viewed 125847

what is the code to disable an INPUT text box for HTML?

Thanks

5 Answers

The syntax to disable an HTML input is as follows:

<input type="text" id="input_id" DISABLED />
<input type="text" required="true" value="" readonly>

Not the.

<input type="text" required="true" value="" readonly="true">
Related