Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Dropdown menu coding - mouse over

Options
  • 31-07-2014 4:51pm
    #1
    Registered Users Posts: 3,056 ✭✭✭


    Hi All,

    I've a code snippet I'm trying to edit.

    My website has a link navigation dropdown menu in place, but the default setting it to activate it on a mouse click, not to function on mouse hover as I would prefer.

    Below is a snippet of the JS code - Anyone recommend a change to allow mouse hover to operate the dropdown?

    EDIT - I've added "hover" instead of "click" but it did not work...

    Thanks!


    $("#nav .navbar-nav > li .dropdown-toggle").click(function () {

    $(this).parent().toggleClass("open-nav")

    });



Comments

Advertisement