Ver Mensaje Individual
  #4 (permalink)  
Antiguo 18/12/2007, 10:26
Avatar de agressor
agressor
 
Fecha de Ingreso: noviembre-2007
Ubicación: Knocking the Death Door..
Mensajes: 368
Antigüedad: 17 años, 2 meses
Puntos: 3
Re: Acceder a los elementos de un formulario.

Mire a ver si te sirve no manejo mucho arreglos pero asi puede acceder a los string de las cajas de texto.. a ver si te sirve..

<html>
<head>
<script type="text/javascript">
function selText()
{
var x =document.getElementById("myText").value;
alert(x);
}
</script>
</head>

<body>
<form>
<input size="25" type="text" id="myText" value="A cat played with a ball">

<input type="button" value="Select text" onclick="selText()">
</form>
</body>

</html>

Ahi me cuentas salu2..!