Combobox popolare con nuovi item




<select id = "example-select"> </select>


<script>
var example_array = {
ValueA : 'Text A',
ValueB : 'Text B',
ValueC : 'Text C'
};

var select = document.getElementById("example-select");
for(index in example_array) {
select.options[select.options.length] = new Option(example_array[index], index);
}





</script>










( comboboxpopolareconnuoviitem.html )- by Paolo Puglisi - Modifica del 17/12/2023