Ok I have looked at a few questions on here concerning this topic. But I can not seem to find exactly what I am looking for. I need some help!! I need to dynamically create a select box in a form using jquery, php and mysql. Here is how I have the original select box now without the need to add a new one:
<select name="material" id="selectList">
<?php
$get_material = mysql_query("SELECT DISTINCT Familia, anchocm FROM MYS")
or die(mysql_error());
while ($info = mysql_fetch_array($get_material)) {
echo "<option value=\"".$info['anchocm']."\">".$info['Familia']."</option>
";
}
?>
</select>
It gets the information from a mysql database and populates the fields. Now I need to add a button next to this select box adding another select box identical to this one. So that they may choose one option in each select box. I have no idea how to go about doing this. If anyone has a better suggestion to use I am open. I just need to get this done before tomorrow morning. Thank you so much in advance!