Check box in Bootstrap Drop down list
How do I make an check box in bootstrap drop down list?
What is a check box in bootstrap drop down list? How do you make a check box in bootstrap drop down list? This script and codes were developed by Tommy on 30 December 2022, Friday.
Check box in Bootstrap Drop down list - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Check box in Bootstrap Drop down list</title> <link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ body{ padding: 20px;
}
label{ font-weight: normal;
}
.dropdown-header{ color: #000;
}
.checkbox-in-ddl input[type=checkbox]{ margin-left: 20px; margin-right: 4px;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="btn-group"> <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown"> hoehoe </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">Foooooo</a></li> <li class="dropdown-header"><b>Dropdown-header</b></li> <li class="checkbox-in-ddl"> <label> <input type="checkbox" />Check box1 </label> </li> <li class="checkbox-in-ddl"> <label> <input type="checkbox" />Check box2 </label> </li> <li class="checkbox-in-ddl"> <label> <input type="checkbox" />Check box3 </label> </li> <li><a href="#">Bar</a></li> </ul>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Check box in Bootstrap Drop down list - Script Codes CSS Codes
body{ padding: 20px;
}
label{ font-weight: normal;
}
.dropdown-header{ color: #000;
}
.checkbox-in-ddl input[type=checkbox]{ margin-left: 20px; margin-right: 4px;
}
Check box in Bootstrap Drop down list - Script Codes JS Codes
$('li').on('click', function(e) { if($(this).hasClass('checkbox-in-ddl') || $(this).hasClass('dropdown-header')) { e.stopPropagation(); // <-------- POINT :D }
});
Developer | Tommy |
Username | hoehoe |
Uploaded | December 30, 2022 |
Rating | 3 |
Size | 2,170 Kb |
Views | 20,240 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Timeline sample | 2,263 Kb |
A Pen by Tommy | 1,738 Kb |
CSS animation | 2,194 Kb |
Materialize css | 3,074 Kb |
Adding FontAwsome icon via CSS pseudo vs fa class | 2,614 Kb |
Timeline with CSS | 2,552 Kb |
Get Form value with jQuery | 1,931 Kb |
AngularJS | 2,264 Kb |
Custom checbox with css | 2,825 Kb |
Parallax with only css | 3,096 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Colorful Sliders | Chanrith | 1,246 Kb |
Twitch JSON API | Jvhti | 2,808 Kb |
Simple Accordion | Wearebold | 3,683 Kb |
CSS3 Button Examples | Volusion | 3,377 Kb |
Default Input, Textareas, Submits, and Buttons in iOS | Demersdesigns | 2,334 Kb |
Vertical Pan Hammer.js example | Jtangelder | 2,144 Kb |
React TODO | Enieste | 3,320 Kb |
Lazy Load for Background Images | The_ruther4d | 2,977 Kb |
Parallax-ish Sliding Content | Jdsteinbach | 2,748 Kb |
Border image | JohnRiordan | 2,120 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!