Pregunta

I want to aply the following mask to a h:inputText - "9.99.999.999999/9999-99" I managed to do that using the following:

rich:jQuery selector="#nuProcesso" query="mask('9.99.999.999999/9999-99',{placeholder:' '})"

But I want to use dir="rtl" (right to left) and when I set it in my inputText, the mask gets inverted. So I thought about inverting the mask, but it didn´t work.

Does someone know how to use jquery mask on a rtl field?

¿Fue útil?

Solución

use attr reverse

mask('9.99.999.999999/9999-99',{placeholder:' ', reverse: true})
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top