我试过这个,
document.getElementById('<% = ListBox1.ClientID %>').options.length = 0;
这样做的作用是清除列表框中的项目..我只是想取消选择所选的项目..任何建议...
最佳答案
代码
ListBox1.selectedIndex = -1;
关于javascript - 使用 javascript 从列表框中删除(取消选择)所选项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3300343/