How to get the value of radio button in JQuery


Monday, August 2, 2010

Suppose you have group of radiobuttonlist and you need to find which radio button is checked.

So By using below code you can find, which radio button is checked in radiobuttonlist


jQuery('#ctl00_ContentPlaceHolder1_rblSort input:radio:checked').val()


or

$("#ctl00$ContentPlaceHolder1$rblSort").data("currChecked", 

$(this).find("input:radio:checked")[0]);


Hope this post will help you,
if yes please put comment below of this page,
Rajesh Singh,
Senior Asp.Net Developer

Email: raj143svmit@gmail.com
e-Procurement Technologies Ltd (India)
www.abcprocure.com


3 comments :

sleightofhandmagic said...

very nice blog!!

rajesh Singh said...

Rajesh : Thanks, Keep reading blog.

Anonymous said...

http://www.easy-share.com/1909347320/WebDev.WebServer.rar