title: How to create a div with jQuery
body: <p>Morning :)</p>
  
  <p>Im trying to create a div everytime a push one button with jQuery.</p>
  
  <pre><code>$('#button_submit').click(function() 
  {
  //create a div inside a already existing div (&lt;div id="save"&gt;&lt;/div&gt;) with this parametres:
  /*
  &lt;h3&gt;Title&lt;/h3&gt;
  &lt;div&gt;
  &lt;p&gt;
  Some text
  &lt;/p&gt;
  &lt;/div&gt;
  */
  }
  
  &lt;div id="save"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Any help? :) Cheers</p>
  
  <p>EDIT:</p>
  
  <pre><code>//newArray is defined.
  $("&lt;button id=saved&gt;").click(function() {
  drawChart.apply(null, newArray);
  }).text("click me")
  </code></pre>
  
  <p>this button should be inside the new div too. Can I easly integrate ?</p>