Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/09/2006, 20:58
Avatar de Tipdar
Tipdar
 
Fecha de Ingreso: octubre-2005
Ubicación: Aquí y allá.
Mensajes: 323
Antigüedad: 18 años, 7 meses
Puntos: 7
Cuando haces clic en el campo text la función le quita los puntos al valor:

Código:
<html>
<head>
<script language="javascript" type="text/javascript">
   function limpiar(elemento) {
      var texto = elemento.value;
	  while (texto.indexOf('.') != -1)
	     texto = texto.replace('.','');
	  elemento.value = texto;
   }
</script>
</head>
<body>
   <input type="text" name="valor" id="valor" value="2.000.000" onclick="limpiar(this)" />
</body>
</html>
__________________
El último TipdaR