How to get dropdown menu to open/close on click rather than hover?

后端 未结 5 1664
星月不相逢
星月不相逢 2021-02-06 07:32

I am very new to javascript and ajax/jquery and have been working on trying to get a script to open and close the drop menu on click rather that hover.

The menu in quest

5条回答
  •  余生分开走
    2021-02-06 08:24

    .hover, .click, .something, are all triggers, view this link:

    Jquery Events

    to learn more about events in Jquery!

    Ps: sushil bharwani (vote it), is right, just change your .hover by the .click

提交回复
热议问题