I have a object in my HTML site which I expand/add to with a little JavaScript bit (below) on button click.
Can I refresh the dropdown/select on it's own to show the new choices automaticaly or can I only do that via a whole page refresh?
<select name="Auswahl", id='s'> </select>
<script>
var select = document.getElementById("s");
for (j = 1; j <= i; ++j){
var opt = document.createElement('option');
opt.value = opt.text = j;
select.add(opt);
}
</script>