Click here to Skip to main content
15,899,577 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
<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>
Posted

SQL
The simple way to retrieve checked value of RadioButtonList1 is:

$('#RadioButtonList1 input:checked').val()
 
Share this answer
 
Hi Ashish

you can also use the following code sample.

JavaScript
$('#RadioButtonList1').find('input:radio:checked').val();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900