Skip to content

Instantly share code, notes, and snippets.

@lewebsimple
Created March 20, 2017 23:53
Show Gist options
  • Select an option

  • Save lewebsimple/6121d35a5977cb036b08c8d9bdb94726 to your computer and use it in GitHub Desktop.

Select an option

Save lewebsimple/6121d35a5977cb036b08c8d9bdb94726 to your computer and use it in GitHub Desktop.

Revisions

  1. lewebsimple created this gist Mar 20, 2017.
    5 changes: 5 additions & 0 deletions dropdown-hover.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    // Dropdown navbar menu on hover
    $('.dropdown-menu', this).css('margin-top', 0);
    $('.dropdown').hover(function () {
    $('.dropdown-toggle', this).trigger('click').toggleClass("disabled");
    });