title: How to give multiple events and handlers in .on method?
body: <p>I'm trying to move a <code>submenu</code> by using multiple handlers in <code>on</code> method.
  What I want is if I moved my mouse on the one of <code>li</code> elements, event string <code>mouseenter</code> detects, then executes <code>function panelON</code> and same ways go between <code>mouseleave</code> and <code>function panelOFF</code>.</p>
  
  <p>So I wrote the codes various ways but all of them didn't work and each of those have its own specific errors.</p>
  
  <pre><code>  target = $('#home-menu-nav ul li');
    target.on('mouseenter mouseleave', {
      convert: $('#submenu-content'),
      panelON(event) || panelOFF(event)
    })
  
    function panelON(event) {
      if (event.type == 'mouseenter') {
        console.log('fx panelON detected')
      } else {
        return
      }
    }
  </code></pre>
  
  <p>This one prints an error <code>Unexpected token ||</code>. Seems like <code>||</code> marks cannot be used with insdie of handlers. </p>
  
  <p>Next one I tried is just grouped event and handlers all of them like in this article. <a href="https://stackoverflow.com/questions/8608145/jquery-on-method-with-multiple-event-handlers-to-one-selector">link</a></p>
  
  <pre><code>  target.on( {mouseenter: panelON(event)}, {mouseleave: panelOFF(event)} )
  
    function panelON(event) {
      console.log('fx panelON detected')
    }
  
    function panelOFF(event) {
      console.log('fx panelOFF detected')
    }
  </code></pre>
  
  <p>And this was started immediately no matter what I hovered <code>target</code> or not.</p>
  
  <pre><code>  target = $('#home-menu-nav ul li');
    target.on( {mouseenter: function() {
      console.log('fx panelON detected')
    }}, {mouseleave: function() {
      console.log('fx panelOFF detected')
    }} )
  </code></pre>
  
  <p>Last one. This one only prints <code>mouseenter</code>. <code>mouseleave</code> doesnt work.
  Is there any ways to give and matching between events and handlers in .on method?</p>