I’m trying to make a drop-down menu using two divs, the first <div> has the .hover() function which shows the second <div>. Since the first div has the .hover() function when I pass my mouse pointer over the second <div>, it disappears.
How can I disable the first <div>‘s .hover() function when my mouse pointer is over the second <div>?
Make a containing div that wraps both of your menu divs. When the first menu div is hovered, show the second div – when the containing div is no longer hovered, hide the second div.
Hopefully that makes sense: