0

Is it possible to have different input mask patterns for the same input field? I am trying to validate a Postal Code field where the user can enter codes of the format AA9A , AA9 9AA and a few more. I am using PrimeFaces.

SnS
  • 175
  • 2
  • 16

1 Answers1

0

https://github.com/normanzb/chuanr/

This tools support multiple patterns. you can even create a custom matching.

take a look at the demo, click "patterns" http://normanzb.github.com/chuanr/.

Norman Xu
  • 1,364
  • 1
  • 9
  • 5