I am trying to have some readonly data on the page that I want to put in a span
or a div
. And I would like this to look like a Bootstrap input field. This is similar to giving the class btn
to a div to make it look like a button.
<fieldset disabled>
<div class="form-group">
<label for="disabledTextInput" class="col-sm-2 control-label">Disabled input and select list (Fieldset disabled)</label>
<div class="col-sm-10">
<input type="text" id="disabledTextInput" class="form-control" placeholder="Disabled input">
</div>
</div>
</fieldset>
Working fiddle http://jsfiddle.net/4bvsbkr2/2/
Update
<fieldset disabled>
<div class="form-group">
<label for="disabledTextInput" class="col-sm-2 control-label">Disabled input and select list (Fieldset disabled)</label>
<div class="col-sm-10">
<span class="form-control">
Disabled
</span>
</div>
</div>
</fieldset>
Fiddle http://jsfiddle.net/4bvsbkr2/15/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With