This time I will share jQuery Plugin and tutorial about jQuery Plugin To Toggle Bootstrap Dropdowns On Hover, hope it will help you in programming stack.
A simple jQuery plugin which allows the visitor to toggle Bootstrap‘s native dropdown menus on hover, on click or both.
Supports both Bootstrap 4 and Bootstrap 3 framework.
Additional features:
- Maintains Bootstrap dropdowns’ native functions.
- Auto close dropdown menu after a time out.
How to use it:
1. Load the jquery.bootstrap-dropdown-hover.js
script in your Bootstrap project, after jQuery JavaScript library.
1 |
< script src = "jquery.min.js" ></ script > |
2 |
< script src = "bootstrap.min.js" ></ script > |
3 |
< script src = "jquery.bootstrap-dropdown-hover.js" ></ script > |
2. Call the function on the Bootstrap dropdown menu.
1 |
$( '[data-toggle="dropdown"]' ).bootstrapDropdownHover(); |
3. Config the plugin.
5 |
clickBehavior: 'sticky', |
Changelog:
v4.1.1 (2018-09-04)
- Added support for linked dropdown.
2018-04-10
This awesome jQuery plugin is developed by istvan-ujjmeszaros. For more Advanced Usages, please check the demo page or visit the official website.