ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap 4 Active And Disabled Button
Source Code
<!DOCTYPE html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> <meta name="description" content=""> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" /> <title>Bootstrap 4 Active And Disabled Button</title> </head> <body> <div class="container mt-4"> <h1>Bootstrap 4 Active And Disabled Button</h1> <p> To create active button assign <code>.active</code> to the <code>button</code>, <code>input</code> & <code>link</code> element base class while to create disabled button use <code>.disabled</code> to the <code>button</code>, <code>input</code> & <code>link</code> </p> <h4>Active Button</h4> <button type="button" class="btn btn-primary active">Active Primary</button> <br /> <h4>Disabled Button</h4> <button type="button" class="btn btn-primary" disabled>Disabled Primary</button> <a href="#" class="btn btn-primary disabled">Disabled Link</a> </div> <!--/container--> <!-- jQuery first, then Popper.js, then Bootstrap JS --> <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> </body> </html>
Output :
Running