interviews.dotnetthread.com

↑ Grab this Headline Animator

Monday, June 30, 2008

How to get value from RadioButtonList control in Javascript?

function GetRadioButtonValue(id)
{
var radio = document.getElementsByName(id);
for (var ii = 0; ii < radio.length; ii++)
{
if (radio[ii].checked)
alert(radio[ii].value);
}
}

Submit this story to DotNetKicks

No comments:

Post a Comment

Post your comments/questions/feedback for this Article.

 

Latest Articles