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 SharePoint Error - The Managed Metadata Service or Connection is currently not available. The Application Pool or Managed Metadata Web Service may not have been started - SharePoint
- Outlook and Hotmail not working - email issue, message not delivered, send receive problem - Microsoft
- Set width and height for the label in tkinter - Python
- How to install zsh shell on Ubuntu - Ubuntu
- AlertDialog with image using ImageView Example - Android
- Bash - How to check if a Command Failed? - Bash
- Android Studio: Cannot perform refactoring operation - Android-Studio
- MainActivity error: cannot find symbol FloatingActionButton - Android