twitter-bootstrap Read-only and disabled inputs


Example

Add the readonly attribute to prevent user input. A readonly field can't be edited

<input class="form-control" type="text" placeholder="Readonly input here…" readonly>

Add the disabled attribute to disable an input field. A disbled field can't be edited either. The cursor changes to make it more noticeable.

<input class="form-control" id="disabledInput" type="text" placeholder="Disabled input here..." disabled>