
As above, I have a button that, when clicked, will open a submenu. There are three elements for each parameter in the submenu (actually more, I think, but for its simplicity there will be 3). I focus on the main div (white "frame") submenu. Onblur of this div - I will then hide the submenu.
All this behaves as expected, but I have a doubt that when one of the three elements is pressed for a certain parameter (i.e., given focus), the main div closes due to its onblur event handler - and the PopUp function, which is related with the onClick event of items for options in the submenu, they do not start / do not execute.
I need to somehow handle the onblur event of the main div this way if the parameters were not clicked.
JQuery, , , .