如何在jQuery中获取radiobuttonlist选定的值 [英] how to get radiobuttonlist selected value in jquery

查看:327
本文介绍了如何在jQuery中获取radiobuttonlist选定的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在jquery中获取asp.net控制值的单选按钮列表,如何获得我曾经使用过的

i want to get radiobuttonlist of asp.net control value in jquery how to get it i had used

alert($('#<%=rdorightcolorchoice.ClientID %> input[type=radio]:checked').val());


但它不起作用,请帮助 asap


but it not working please help asap

推荐答案

(' #<%= rdorightcolorchoice.ClientID%> input [type = radio]:checked').val());
('#<%=rdorightcolorchoice.ClientID %> input[type=radio]:checked').val());


但它不起作用,请帮助 asap


but it not working please help asap


检索RadioButtonList的选中值的简单方法是:
The simple way to retrieve checked value of RadioButtonList is:


(' #<%= rdorightcolorchoice.ClientID%>输入:已选中').val()


这篇关于如何在jQuery中获取radiobuttonlist选定的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆