Bootstarp button disable example
If you are using Bootstrap UI framework in your project and want to disable a button element, you can simply do it by adding attribute disabled="true",
Example:
<button id="myButton" type="button" class="btn btn-primary" disabled="true">Primary</button>
If you want to disable the button programmatically via JavaScript, you can do
document.getElementById("myButton").disabled = true;
If you want to achieve this using JQuery you can try the below code,
$('myButton').prop('disabled', true);
More Posts related to Bootstrap,
- How to disable button in Bootstrap
- Bootstrap tooltip not working
- Bootstrap Button Colors Classes
- Rounded Images in Bootstrap framework
- Right Align Text in Bootstrap framework
- How to add hint text in bootstrap input text field and text area
- Create Bootstrap carousel slider with Text
- Bootstrap Nav Menu Dropdown on hover
- [Solved] Bootstrap tooltip not working
- Align left align text in Bootstrap
More Posts:
- [fix] JSON Expected BEGIN_OBJECT but was STRING at line 1 column 1 - Java
- How to check if Key Exists in Python Dictionary? - Python
- Install Python on Alpine Linux - Docker - Docker
- Increase Font Size of Eclipse Java Code - Eclipse
- Struts2 : java.lang.ClassNotFoundException: org.apache.commons.fileupload.RequestContext - Java
- The package must have at least one . separator [Android Studio] - Android-Studio
- [Solution] Java JDBC SQLException: No value specified for parameter 1 - Java
- How to run React Native App using Android Studio Emulator - Android-Studio