JSFiddle - React, Tailwind, and code Playground

by oburejin

HTML

<html>
<head>
    <title></title>
</head>
<body>

<ul>
    <li style="float:left;" >menu one
        <ul  style="display:none;">
            <li>one</li>
            <li>two</li>
            <li>three</li>
        </ul>
    </li>
     <li>menu two
         <ul  style="display:none;">
            <li>one</li>
            <li>two</li>
            <li>three</li>
        </ul>
    </li> 
</ul>

</body>
</html>

JavaScript

$('li > ul').mouseover(function(){
    $(this).children('ul').show();
    }).mouseout(function(){
    $(this).children('ul').hide();
    })