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