Ver Mensaje Individual
  #7 (permalink)  
Antiguo 20/12/2010, 13:57
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 10 meses
Puntos: 1012
Respuesta: una manito por favor

Cita:
<td colspan="3" rowspan="2" valign="top"><p>
<label>
<input type="radio" name="estado0" value="Activo" checked="checked" onclick="get_radio_value_ori(this.checked)">
Activo</label>
<br>
<label>
<input type="radio" name="estado1" value="Inactivo" onclick="get_radio_value_ori(this.checked)">
Inactivo</label>
que no es eso, quita la invocación a la función
el html ha de quedar así, pongamos sin tratarlo como array
Cita:
<td colspan="3" rowspan="2" valign="top"><p>
<label>
<input type="radio" name="estado" value="Activo" checked="checked">
Activo</label>
<br>
<label>
<input type="radio" name="estado" value="Inactivo">
Inactivo</label>
el javascript
Cita:
function get_radio_value_ori() {
for( var i=0; i < document.formato.estado.length; i++ ){
if( document.formato.estadoj[i].checked ){
return document.formato.estadoj[i].value;
}
}
}