Change the options array of a select list

前端 未结 5 1304
青春惊慌失措
青春惊慌失措 2020-12-03 10:29

Is there a way to change the options array of an html select list using javascript or mootools?

I need to replace the entire options set with a new one. In my ajax

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-03 10:39

    var newOptionsHtml = "";
    
    $("#test").html(newOptionsHtml);
    

提交回复
热议问题