Is it possible to make an analogy to the focusout event for the list ul> li?

I have a UL tag with nested LIs, all this is done in the form of a drop-down list, when I click on an item, a list of all LIs is shown, everything only works, focusout does not work correctly.

Has anyone come across a similar?

Example here: jquery / test30.html

  • The code give, where incorrectly fulfills. - zb '
  • <ul> cannot contain a standard div, and where there is a focusout or something else, - zb '
  • About the standard: well, I will know. Inserted focusout as I had it - anton
  • 2
    Just a tip — more than 25,000 patents have been issued for a bicycle — no need to reinvent it. There is a ready-made solution - github.com/claviska/jquery-selectBox - Indifferent
  • one
    This is how I would do it, jsfiddle.net/oceog/2Y2Er - zb '

0