jquery radiobutton select change
2014-05-21 11:15
387 查看
<asp:RadioButtonList ID="rbtResourceType" runat="server" class="radioItem" RepeatLayout="Flow" RepeatDirection="Horizontal" >
<asp:ListItem>代理招生</asp:ListItem>
<asp:ListItem>市场活动</asp:ListItem>
<asp:ListItem>老师推荐</asp:ListItem>
<asp:ListItem>学员推荐</asp:ListItem>
<asp:ListItem>其他</asp:ListItem>
</asp:RadioButtonList>
<script type="text/javascript">
$(document).ready(function () {
$(".radioItem").change(function () {
var selectedvalue = $("input[name='rbtResourceType']:checked").val();
alert(selectedvalue);
});
});
</script>
<asp:ListItem>代理招生</asp:ListItem>
<asp:ListItem>市场活动</asp:ListItem>
<asp:ListItem>老师推荐</asp:ListItem>
<asp:ListItem>学员推荐</asp:ListItem>
<asp:ListItem>其他</asp:ListItem>
</asp:RadioButtonList>
<script type="text/javascript">
$(document).ready(function () {
$(".radioItem").change(function () {
var selectedvalue = $("input[name='rbtResourceType']:checked").val();
alert(selectedvalue);
});
});
</script>
相关文章推荐
- 【转载】jQuery RadioButton、input、CheckBox、select 取值赋值
- Jquery formValidator select 触发2次change解决办法
- jQuery的radio,checkbox,select操作
- jQuery操作radio、checkbox、select示例
- 【转】jQuery RadioButton、input、CheckBox取值赋值
- Jquery 对 radio取值,checkbox取值,select取值,rad
- JQuery实现radio、select、checkbox禁用
- jquery 判断 radio,checkbox,select是否被选中
- jQuery的radio,checkbox,select操作
- Jquery主要控件的取值、赋值,包括textbox,button,lable,radio,checkbox,selected
- Jquery操作select、checkbox、radio详细讲解
- jQuery 操作 html 元素的例子 (input/select/checkbox/radio)
- jQuery设置 select、radio、checkbox 默认选中的值
- select radio jquery 选择值
- jquery select checked radio
- 在IE中关于Radio和Checkbox在JQuery中的change事件的立即触发
- JQuery操作 text,select,textarea,radio,checkbox
- jquery mobile radio,checkbox button 样式设置
- jquery中select 的change事件实例
- jquery获取和设置radio,check,select选项