Answers for "jsquer add select options"

2

add select option javascript

var min = 12,
    max = 100,
    select = document.getElementById('selectElementId');

for (var i = min; i<=max; i++){
    var opt = document.createElement('option');
    opt.value = i;
    opt.innerHTML = i;
    select.appendChild(opt);
}
Posted by: Guest on December-30-2021
1

add select option jquery

Add option to a select list of picklist
Posted by: Guest on May-10-2020

Code answers related to "jsquer add select options"

Code answers related to "Javascript"

Browse Popular Code Answers by Language