в ListBoxе не выполняется метод POST
Обрабатываю 2 списка следующим образом, но при отправки данных, изменения не отправляются. Помогите пожалуйста.
function list(idSorceList, idDestinationList) { var selectList = document.getElementsByTagName("SELECT"); for (var i = 0; i < selectList.length; i++) { if (selectList(i).name.indexOf(idSorceList) >= 0) { var Source = selectList(i); } if (selectList(i).name.indexOf(idDestinationList) >= 0) { var Target = selectList(i); } } var SelectedValue = Source.options[Source.options.selectedIndex].value; // Hidden List is comma seperated var newOption = new Option(); // Create a new instance of ListItem newOption.text = Source.options[Source.options.selectedIndex].text; newOption.value = Source.options[Source.options.selectedIndex].value; Target.options[Target.length] = newOption; //Append the item in Target return Target; } |
Часовой пояс GMT +3, время: 06:21. |