Click here to Skip to main content
15,885,214 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
i want to get radiobuttonlist of asp.net control value in jquery how to get it i had used
JavaScript
alert($('#<%=rdorightcolorchoice.ClientID %> input[type=radio]:checked').val());

but it not working please help asap
Posted
Updated 21-Sep-11 19:43pm
v2

The simple way to retrieve checked value of RadioButtonList is:
JavaScript
$('#<%=rdorightcolorchoice.ClientID %> input:checked').val()
 
Share this answer
 
Comments
[no name] 15-May-12 0:18am    
good one 5!
sdgopal 19-Jun-12 1:50am    
i have multiple radiobutton list on a page that are radomly generated i want to get the values of those radiobutton list.
if ($.trim( $('#<%=rdbSiteShape.ClientID %> input:checked').val() )=='') {
alert('Site Shape is Required');
}
 
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