Get from "src" folder plugin "navigation.js" add it to you header under jQuery library included
This plugin requires jQuery to be included
Examples you can find in index.html
Call plugin with:
$(function(){
$('.navigation').navigation();
});
Or initialize plugin with passed parameters:
$(function(){
$('.navigation2').navigation({
elListItem: "li",
//Element used to find child menus
elList: "ul",
//Additional styles can be added by this class
activeClassName: "active",
//If you choose not use default slideDown animation you will able to style it with css
animate: true,
//By default only one dropdown in same level is opened
//You can change to false and it will leave all menu items opened
showOnlySelected: true
});
)};
This plugin could be used without ul or li tags. Watch examples in index.html file.
This project is licensed under the MIT License - for this read License.md file