Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Select One Option In Radio Button

DZone's Guide to

Select One Option In Radio Button

·
Free Resource
// Nota  : Rafael Trindade da Silva - Mantus Deus Estrusco do Inferno
// Email : rafaeltds at gmail dot com


function isRadio(camporadio) {
 var tamanho = camporadio.length;
 var retorno = false;
 for (var cont = 0; cont < tamanho; cont++) {
  if(camporadio[cont].checked) {
    retorno = true; break;
  }
 }
 return (!retorno) ? false : true;
}
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}