accessories
1つのボタン( )を押すとselection(mylist
)に1つの配列()が入力され、もう1つのボタン()を押すともう1つの配列()が選択accessoryData
に入力されるスクリプトを作成しました。ただし、コードの現在の状態では、2番目のボタンを押しても選択範囲が再入力されません。ここで何が問題になっていますか?weapons
weaponData
また、これを行うためのより効率的な方法がある場合は、それが役立つ可能性があります。
function runList(form, test) {
var html = "";
var x;
dataType(test);
while (x < dataType.length) {
html += "<option>" + dataType[x];
x++;
}
document.getElementById("mylist").innerHTML = html;
}