Tema: undefined
Ver Mensaje Individual
  #7 (permalink)  
Antiguo 16/10/2010, 14:02
PilopiArt
(Desactivado)
 
Fecha de Ingreso: enero-2010
Mensajes: 83
Antigüedad: 14 años, 3 meses
Puntos: 1
Respuesta: undefined

gracias a todos problema resuelto
Código Javascript:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Documento sin t&iacute;tulo</title>
  6. </head>
  7. <body>
  8.  
  9. <form method="post" action="" >
  10. <input type="text" name="caca"/>
  11. <input type="text" name="caca"/>
  12. <input type="button" onclick="morbi ()" value="yo"/>
  13. </form>
  14. <script type="text/javascript">
  15. <!--
  16. function morbi()  
  17. {  
  18. var caca=document.getElementsByName("caca");  
  19. alert(caca[0].value);  
  20. }  
  21. //-->
  22. </script>
  23. </body>
  24. </html>