2017-08-28 57 views

回答

0

嘗試使用下面的代碼,而附加在選擇列表中的選項。

$('#mySelect').append($('<option>', { 
     value: item.value, 
     text : item.text 
    }));