I'm new to jQuery and currently I'm trying to develop a dropdown menu with jQuery and jQuery UI, but I'm having some problems.
You can have a look at my script at:
As you can see, when you move your mouse over a "Prvi" the dropdown drops as planned, and if you place your cursor over "Item 1" in the same menu you'll see a submenu appearing.
You close the submenu by moving your cursor over to the "Item 2" in the dropdown, but I want to close submenu by moving the cursor over at "Prvi" as well.
I tired using the same code, but it doesn't work, and moving the cursor back to the "Prvi" doesn't do anything, so I was hoping that someone can help me with this.