关于select—页面中的ListBox的Javascript

document.all("ListBox1",0).selectedIndex:选中的行的index(从0开始计)
document.all("ListBox1",0).length-1:        列表中的总行数
document.all("ListBox1",0).options(***).text:第***行的文字值
document.all("ListBox1",0).options(document.all("ListBox1",0).length-1).text:最后一行的文字

 

微软的dhtml文档地址:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/select.asp

posted @ 2005-09-12 16:40  jetz  阅读(412)  评论(0编辑  收藏  举报