twitter-bootstrap Forms Read-only and disabled inputs


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>