physics90
physics90

Reputation: 961

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.

Upvotes: 0

Views: 653

Answers (1)

DevangKantharia
DevangKantharia

Reputation: 694

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.

Upvotes: 2

Related Questions