title: Insert input into div jQuery
body: <p>I need some help.
  I have a form with some inputs and he sorted with divs.
  I want to insert into the div more inputs so I tried to do something like this-</p>
  
  <pre><code>$(document).ready(function(){
    $("#more").click(function(){
      $("#div_name").append("&lt;input type=\"text\" name\"test\" value=\"test\" /&gt;");
    });
  });
  </code></pre>
  
  <p>And the html is</p>
  
  <pre><code>&lt;form action="" method="post" enctype="multipart/form-data" name="form_name"&gt;
     &lt;input type="text" name="text_input" value="test" /&gt;
     &lt;div id="div_name"&gt;&lt;/div&gt;
     &lt;input type="button" id="more" value="Add more" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And it's works and add the inputs great, but when I send the form he won't send the input that the jquery added because if I'll do print_r($_POST); he will show me all the posts except those I just added, so the output will be</p>
  
  <pre><code>        Array
  (
      [text_input] =&gt; test
  )
  </code></pre>
  
  <p>also when I used the jQuery code above.
  But when I'm doing $("form").append(...); , everything is going great but the input isn't in the div.
  Thank you. :)</p>