with(document.all("listBox1")){
for(i=0;i<length;i++)alert(options[i].value)
}
for(i=0;i<length;i++)alert(options[i].value)
}
解决方案 »
- 【视频】QuickPager分页控件的下载、DLL说明和配置的说明
- 有哪些方法可以获取当前页的网址,而不包含?后的数据?
- 请教权限的问题
- 求一个时间差的问题!!!急
- 水晶报表中的切换字段视图按钮~~~
- .Net 2005 怎么样?
- 请问为什么我提交表单后把内容写入一个以时间为命xml文件时提示如下错误
- 没有分了 好人帮忙 Double类型转换成String类型
- 谁有大量的.net的学习资料
- treeview的复选框问题
- 请教:在web.config文件中如何添加自己的配置信息,比如说数据库连接串???
- 来者有分!请问如果DataSet中的数据包括2个表,能否自动生成update command?
function change()
{
var addOption=document.createElement("option")
var index1
if(document.all.ListBox1.length==0)return(false);
index1=document.all.ListBox1.selectedIndex
if(index1<0)return(false);
addOption.text=document.all.ListBox1.options(index1).text
addOption.value=document.all.ListBox1.value
with(document.all("ListBox1"))
{
for(i=0;i<length;i++)
if(addOption.text!=document.all.ListBox1.options(i).text)
{
document.all.ListBox2.add(addOption);
document.all.ListBox1.remove(index1);
}
}