当前位置: 代码迷 >> ASP.NET >> Dropdownlist的SelectedIndex的有关问题?
  详细解决方案

Dropdownlist的SelectedIndex的有关问题?

热度:1878   发布时间:2013-02-25 00:00:00.0
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); ")要注意大小写
  相关解决方案