Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add options to select box dynamically jquery

var select = document.getElementById("example-select");
select.options[select.options.length] = new Option('Text 1', 'Value1');
Source by electrictoolbox.com #
 
PREVIOUS NEXT
Tagged: #add #options #select #box #dynamically #jquery
ADD COMMENT
Topic
Name
1+9 =