I have a select field that is dynamically populated with an ajax call that simply returns all the HTML select options. Here is the part of the PHP that just echo\'s the sel
I found as solution to make only
in php/html file and then generate options for it by ajax:
$.post("options_generator.php", function (data) { $("#myselect").append(data); });
In options_generator.php echo options only:
echo "1"; echo "2";