MMMHUHU
selID.onchange = function() { subNode.options.length = 0; index = this.selectedIndex; citys = arr[index]; for (var x = 0; x < citys.length; x++) { var optNode = document.createElement("option"); optNode.innerText = citys[x]; subNode.appendChild(optNode); } }