Goal:
Track all the actions required to reach a certain level in a multi-level dropdown.
Example:
A multi-level dropdown like https://s.bootsnipp.com/iframe/xr4GW which can be opened by hovering on it. Once a menu item is clicked on the dropdown, how can one figure out what hover actions led to that part of the menu being opened ?
In the above bootsnip demo, if the first link in level 3 is clicked on, I want to be able to say that:
- 3rd link in level 1
- --> 2nd link in level 2, resulted in being able to
- ----> click the 1st link in level 3
Current direction:
Currently I'm using mouseover
and click
events to see if I can some-how co-relate all the events together. But no luck as of yet.
Thank you in advance :)
Via Active questions tagged javascript - Stack Overflow https://ift.tt/2FdjaAW
Comments
Post a Comment