Tutorialspoint examples

Learn java tutorial with examples for beginners online

Bootstrap List Group Disabled Item


Bootstrap provide the facility to create a group of list with list items. The most basic list group is an unordered list with list items. Use an ul element with class .list-group, and li elements with class .list-group-item to create a basic list group.

The .disabled class is used to disable an item.

Bootstrap Disabled Item in a List Group Example:

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap List Group With a Disabled Item Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
 
<div class="container">
  <h2>Bootstrap List Group With a Disabled Item Example</h2>
  <div class="list-group">
    <a href="#" class="list-group-item disabled">First item</a>
    <a href="#" class="list-group-item">Second item</a>
    <a href="#" class="list-group-item">Third item</a>
  </div>
</div>
 
</body>
</html>

Try it:

Bootstrap List Group With a Disabled Item Example on jsbin.com

Copyright © 2018 Tutorialspoint examples DMCA.com Protection Status