会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
yuanhuaming
专注.NET旅游方面开发。擅长.NET SQLSERVER 性能优化。目前对.NET跨平台非常感兴趣,正在学习Xamarin
博客园
首页
新随笔
联系
订阅
管理
Jquery 小技巧
1.获取dropdownlist选中的值
Code
$(
'
#ddlCustomerType option:selected
'
).val()
//
html:
<
asp:DropDownList ID
=
"
ddlCustomerType
"
runat
=
"
server
"
>
<
asp:ListItem Text
=
"
代理商
"
Value
=
"
1
"
></
asp:ListItem
>
<
asp:ListItem Text
=
"
加盟店
"
Value
=
"
2
"
></
asp:ListItem
>
<
asp:ListItem Text
=
"
公司团体
"
Value
=
"
3
"
></
asp:ListItem
>
<
asp:ListItem Text
=
"
电子商务
"
Value
=
"
4
"
></
asp:ListItem
>
</
asp:DropDownList
>
2. 获取radioboxlist选中的值
Code
$(
"
input[name='rblType']:checked
"
).val()
<
asp:RadioButtonList ID
=
"
rblType
"
runat
=
"
server
"
>
<
asp:ListItem Text
=
"
直客
"
Value
=
"
1
"
Selected
=
"
True
"
></
asp:ListItem
>
<
asp:ListItem Text
=
"
同业
"
Value
=
"
2
"
></
asp:ListItem
>
</
asp:RadioButtonList
>
posted @
2009-09-10 15:25
疯流成性
阅读(
155
) 评论(
0
)
编辑
收藏
举报
刷新页面
返回顶部
公告