title: Append a PHP code with AJAX
body: <p>I want to insert a new field in a div when the user clicks on the button (+). </p>
  
  <p>The code of textfield is that:</p>
  
  <pre><code>&lt;?php
  $sql = "SELECT nome, codigo FROM ref_bibliograficas";
  $result = mysql_query($sql) or die (mysql_error());
  echo ("&lt;select class='autocomplete big' name='ref_bib_0' style='width:690px;' required&gt;");
  echo ("&lt;option select='selected' value=''/&gt;");  
  while($row = mysql_fetch_assoc($result)){
  echo ("&lt;option value=" . $row["codigo"] . "&gt;" . $row["nome"] . "&lt;/option&gt;");
  echo ("&lt;/select&gt;");
  mysql_free_result($result);
  ?&gt;
  </code></pre>
  
  <p>So, i don't know how I insert the field with AJAX. </p>
  
  <p>I maked the function onclick with jQuery! Can anyone help me please?</p>
  
  <p>Thanks!</p>