In Bootstra, form elements, buttons can be disabled by setting disabled or disabled= "disabled" within the label. Links need to be added class= "disabled" to disable links.
text box is disabled:
<input class= "Form-control" id= "Disabledinput" type= "text" placeholder= "This input box prohibits input ..." disabled>
Disable the Combined form: if the Filedset label is disabled, all the form elements in it are disabled, including the Child text box, drop-down list.
<fieldset Disabled> <div Class="Form-group"> <label For="Disabledtextinput" Class="Col-sm-2 Control-label">Disable input (fieldset disabled)</label> <div Class="Col-sm-10"> <input Type="Text" Id="Disabledtextinput" Class="Form-control" Placeholder="Prohibit input"> </div> </div> <div Class="Form-group"> <label For="Disabledselect" Class="Col-sm-2 Control-label">Disable the Selection menu (fieldset disabled)</label> <divclass= "col-sm-10" > <select id= "disabledselect" class=> <option> prohibit selection span class= "tag" ></option> </select></div> </div></FIELDSET>
Disable button
<button type= "button" class= "btn btn-default btn-lg" disabled= "Disabled" > disable button </button>
To disable a link:
<ahref="#"class="btn btn-default btn-lg Disabled"role="button" ></a
Bootstrap form elements, buttons, links disabled