![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
08/06/2011, 14:30
|
| | Fecha de Ingreso: octubre-2005
Mensajes: 405
Antigüedad: 19 años, 3 meses Puntos: 1 | |
Respuesta: Recuperar valor con javascript Aun asi no me muestra el valor en alert (1 o 2), disculpa mi insistencia.
<html>
<head>
</head>
<body>
<form name="ingrut" id="ingrut" method="post" action="#">
<input name="orden" type="radio" value="1" checked />Fecha de Vencimiento<br>
<input name="orden" type="radio" value="2"/>Fecha de Emision<br>
<input type=button value=Procesar id=procesar onclick="Procesar()">
</form>
</body>
</html>
<scritp>
function Procesar()
{
//Recuperar valor orden
orden = document.ingrut.orden.value;
orden = document.getElementById('ingrut').elements['orden'].value;
alert(orden);
//aparece como undefined
}
</script> |