i am trying to add a box with predefined values in it by clicking a plus button with a variable number in it to define the max addition of new boxes.
Native language:<br>
<select name="nativelang" id="nativelangdrop">
<?php
if ($file = @fopen('txt/languages.txt', 'r')) {
while(($line = fgets($file)) !== false) {
echo "<option>{$line}</option>";
}
fclose($file);
}
?>
</select>
i have this in my html file and i want, if a user selects a language, that the user has the oportunity to click a "plus button/ link" to add one more of the same box. I also want to limit the amount of addable selects to a variable number that i can change if needed.
i have found some similar examples here but i dont know any jquery and am not sure how to call this process, so i hope you guys can help me out.
kinda like this in pseudo code:
on.click -> add.item(select);
if item.number = or > 5 -> add.item = false;
Thanks in advance!