title: Detect paragraph element change with JQuery
body: <p>Is it possible to detect if the content of a paragraph has been changed in JQuery ?</p>
  
  <p>I tried the below code.</p>
  
  <pre><code>&lt;p id="test"&gt;Text&lt;/p&gt;
  &lt;button id="submit1"&gt;change&lt;/button&gt;
  </code></pre>
  
  <p>-</p>
  
  <pre><code>$(document).on("click", "#submit1", function () {
      var d = new Date();
      var time = d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds();
      $("#test").text(time);
  });       
  $(document).on("change", "#test", function () {
      alert("Paragraph changed");
  });
  </code></pre>
  
  <p>JSFiddle : <a href="http://jsfiddle.net/nnbqye55/" rel="noreferrer">http://jsfiddle.net/nnbqye55/</a></p>
  
  <p>I guess I am missing something obvious.</p>