Question

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?

Was it helpful?

Solution

use attr reverse

mask('9.99.999.999999/9999-99',{placeholder:' ', reverse: true})
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top