How do I programmatically set the value of a select box element using JavaScript?

后端 未结 17 1898
轮回少年
轮回少年 2020-11-22 06:33

I have the following HTML

17条回答
  •  梦如初夏
    2020-11-22 06:54

    Should be something along these lines:

    function setValue(inVal){
    var dl = document.getElementById('leaveCode');
    var el =0;
    for (var i=0; i

提交回复
热议问题