Answers for "add options to select box dynamically jquery"

0

add options to select box dynamically jquery

var select = document.getElementById("example-select");
select.options[select.options.length] = new Option('Text 1', 'Value1');
Posted by: Guest on September-15-2021

Code answers related to "add options to select box dynamically jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language