- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Set disabled state for Bootstrap Buttons
To set disabled state, use the disabled class.
You can try to run the following code for the disabled state of a button −
Example
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> </head> <body> <p>The following are some buttons:</p> <button type = "button" class = "btn btn-default btn-lg "> Default Button </button> <button type = "button" class = "btn btn-default btn-lg" disabled = "disabled"> Disabled Button </button> </body> </html>
- Related Articles
- Set active state for Bootstrap Buttons
- Set disabled links with Bootstrap
- Add sizes for Bootstrap Buttons
- Primary action in a set of Bootstrap buttons
- Make a set of buttons appear vertically with Bootstrap
- Add buttons in Bootstrap Navbar
- Add dropdown menu to buttons using Bootstrap
- Group buttons on a single line with Bootstrap
- Get a muted look with .disabled in Bootstrap Pager
- Preappend or Append radio buttons and checkboxes with Bootstrap
- How to change Tkinter Button state from disabled to normal?
- Set negative action for Bootstrap 4 cards with red background color
- Set Column Ordering in Bootstrap
- Set Bootstrap Panel with Heading
- Set small modal in Bootstrap

Advertisements