通过jquery从radiobuttonlist中检索数据,任何人都可以解决它 [英] Retrieve the data from the radiobuttonlist via jquery, Can anyone could solve it
本文介绍了通过jquery从radiobuttonlist中检索数据,任何人都可以解决它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
< asp:RadioButtonList ID =RadioButtonList1runat =server>
< asp:ListItem>是
< asp:ListItem> no
< script language =javascript>
$(文件).ready(function(){
$(#btnSubmit) .click(function(){
alert($(#RadioButtonList1)。find(input [@checked])。val()); < br $> b $ b
});
});
< / script>
解决方案
(document).ready(function(){
(#btnSubmit)。点击(function(){
alert(
(#RadioButtonList1)。find(input [@checked])。val());
});
});
< / s CRIPT>
<asp:RadioButtonList ID="RadioButtonList1" runat="server">
<asp:ListItem>yes
<asp:ListItem>no
<script language="javascript">
$(document).ready(function() {
$("#btnSubmit").click(function() {
alert($("#RadioButtonList1").find("input[@checked]").val());
});
});
</script>
解决方案
(document).ready(function() {
("#btnSubmit").click(function() {
alert(
("#RadioButtonList1").find("input[@checked]").val());
});
});
</script>
这篇关于通过jquery从radiobuttonlist中检索数据,任何人都可以解决它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文