Here id is the name property of the RadioButtonListfunction GetRadioButtonValue(id) { var radio = document.getElementsByName(id); for (var ii = 0; ii < radio.length; ii++) { if (radio[ii].checked) alert(radio[ii].value); } }
Javascript
Topic: JS Functions
How to get value from RadioButtonList control?
Browse random answers:
What is a JavaScript Function Syntax?
How to get value from RadioButtonList control?
How to Calling a Function with Arguments?
What is a Local JavaScript Variables?
What is a Global JavaScript Variables?