- 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
Disable a Bootstrap Button
When you disable a button, it will fade in color by 50%, and lose the gradient. Use disabled to disable any button.
To disable a button, you can try to run the following code −
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 active"> Active Button </button> <button type = "button" class = "btn btn-default btn-lg" disabled = "disabled"> Disabled Button </button> </body> </html>
- Related Articles
- Disable a button with Bootstrap
- Disable a pagination link with Bootstrap
- Disable a dropdown item with Bootstrap
- Create a default Bootstrap button
- How to Disable / Enable a Button in TKinter?
- Bootstrap Collapsible button
- Create a Button Group with Bootstrap
- Create a basic button with Bootstrap
- Create a large button with Bootstrap
- Create a small button with Bootstrap
- Disable a list item in a Bootstrap list group
- Bootstrap Form Radio Button
- Create button in Bootstrap
- Bootstrap Button Group Classes
- How to disable close button on a JFrame in Java?

Advertisements