Return selected radio value - Node.js HTML

Node.js examples for HTML:Radio Button

Description

Return selected radio value

Demo Code

//Return selected radio value 
function get_selected_radio_value(values){
  var result;/*from  w ww.j a  v a2s  .  com*/
  for (var i = 0; i < values.length; i++) {
    if (values[i].checked) {
      result = values[i].value
    }
  }
  return result;
}

Related Tutorials