博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

用JS获得DropDownList所选择的Text和Value?

Posted on 2007-08-06 10:52  大胸宝腚  阅读(218)  评论(0)    收藏  举报
Text

document.getElementById("DropDownListClientID").options[document.getElementById("DropDownListClientID").selectedIndex].text


Value

document.getElementById("DropDownListClientID").value