title: jQuery hover and click method not working for the same element
body: <p>jQuery's on a method to install the event handlers for the click and mouse hover events for the same element. The problem is that when I just use the hover method, it works but doesn't work with click method.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt; 
  &lt;html lang="en" xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;title&gt;MyInformation&lt;/title&gt;
  &lt;script src="https://code.jquery.com/jquery-1.10.2.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;p id = "p1"&gt;This is paragraph 1&lt;/p&gt;
      &lt;p id = "p2"&gt;This is paragraph 2&lt;/p&gt;
      &lt;p id = "p3"&gt;This is paragraph 3&lt;/p&gt;
      &lt;script&gt;
          $(p1).on
          ({
              mouseenter: function () 
              {
                  $(this).css("color","red");
              },
              mouseleave: function () {
                  $(this).css("color","black");
              }
              click: function () {
                  alert("hello");
              }
           });
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>