Programmatically create select list

后端 未结 8 2249
不知归路
不知归路 2020-11-29 02:48

Does anyone know of a technique to programmatically create an HTML select list including options using JQuery?

8条回答
  •  眼角桃花
    2020-11-29 03:13

    I know this is old, but what the hey:

    $selectBox.html($.map(myArray, function(){
        return $('

提交回复
热议问题