title: Why this code doesnt work when i use button?
body: <p>It doesnt work when i use button.</p>
  
  <p>JQuery:</p>
  
  <pre><code>function changeSize() {
      $(this).animate({fontSize: "+=3px"});
  }
  $(document).ready(function(){
      $("#test").on("click", "p", changeSize);
  });
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;button id="test"&gt;Click me&lt;/button&gt;
  &lt;p&gt;Hello&lt;/p&gt;
  </code></pre>