Ver Mensaje Individual
  #9 (permalink)  
Antiguo 12/05/2011, 15:58
Avatar de _cronos2
_cronos2
Colaborador
 
Fecha de Ingreso: junio-2010
Mensajes: 2.062
Antigüedad: 14 años, 9 meses
Puntos: 310
Respuesta: Masked Input, separador miles

¿Entonces algo como esto no te sirve tampoco?
Código HTML:
Ver original
  1. <form action='procesar.php' method='post' onsubmit='cambiarValor(this);'>
  2. <input type='text' value='1.500.000' />
  3. <input type='submit' value='Enviar sin puntos' />
  4. </form>
Código Javascript:
Ver original
  1. function cambiarValor(frm){
  2.  var input = frm.elements[0];
  3.  input.value = input.value.replace(/[.,]/g, '');
  4. }
Saludos (:
__________________
" Getting older’s not been on my plans
but it’s never late, it’s never late enough for me to stay. "
Cigarettes - Russian Red