Ver Mensaje Individual
  #5 (permalink)  
Antiguo 02/10/2008, 11:59
rapidgarcha
 
Fecha de Ingreso: octubre-2008
Mensajes: 3
Antigüedad: 15 años, 8 meses
Puntos: 0
Respuesta: fecha del día como valor inicial en caja de texto

gracias capo!!!

busque en google y el buscador del foro pero no encontre nada.

Acá va mi código:

Código HTML:
<html>
<head>
<title>fecha</title>
<script language= "Javascript">

function fecha() {
var fecha = new Date();
document.getElementById("elemento").value = fecha.getDate() + "/" + (fecha.getMonth() + 1) + "/" + fecha.getFullYear();
}


</script>
</head>

<body onLoad="fecha()">

	<strong>Fecha del día:</strong>
	<input type= "text" name="ingreso" id="elemento" size="10" maxlength="9"><p>
	

</body>
</html> 
saludos... y gracias por ser tan paciente, jaja