Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

radio button getelementsbyname

var radioButtons = document.getElementsByName("Vehicle");for (var i = 0; i < radioButtons.length; i++) {    if (radioButtons[i].checked) {        console.log("radioButton " + i + ": " + radioButtons[i].value);    }}
Source by www.vbforums.com #
 
PREVIOUS NEXT
Tagged: #radio #button #getelementsbyname
ADD COMMENT
Topic
Name
6+2 =