title: how to add onclick event to dynamically added button
body: <p>how to add on click event for a button which is created dynamically</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$("tr").html("&lt;button class='new'&gt;&lt;span&gt;next-&lt;/span&gt;&lt;/button&gt;" + OriginalContent + "")
  
  $('body').on('click', 'button .new', function() {
    //Some 
  });</code></pre>
  </div>
  </div>
  </p>
  
  <p>but its not working </p>