读书人

Dropdownlist的SelectedIndex的有关问

发布时间: 2012-01-20 18:53:53 作者: rapoo

Dropdownlist的SelectedIndex的问题???
Me.DropDownList1.Attributes.Add( "onchange ", "javascript:alert(document.all( 'DropDownList1 ').SelectedIndex); ")
这样写弹出来是undefined

[解决办法]
不好意思错了..
Me.DropDownList1.Attributes.Add( "onchange ", "javascript:alert(document.all( 'DropDownList1 ').selectedIndex); ")要注意大小写

读书人网 >asp.net

热点推荐