Search code examples
twitter-bootstraptwitter-bootstrap-3bootswatch

Dropdown Menu in Bootswatch


Is there a class specification in Bootswatch that displays a dropdown's menu items on hover rather than having the user click the menu? Thanks in advance.


Solution

  • use below mentioned code using jquery for hover functionality.

    Please refer this JS Fiddle

    <script type='text/javascript'>
        $(document).ready(function () {
            $(".dropdown").hover(function () {
                $(this).addClass("open");
            }, function () {
                $(this).removeClass("open");
            });
        });
    </script>
    

    Regards D.