3 Replies Latest reply on Feb 21, 2012 3:22 AM by giant2

    masked input

    giant2

      How to mask input?

      I find this library: http://digitalbush.com/projects/masked-input-plugin/

      It went ok (for id=abcdef), but in the moment jsf put full notation for id=dddd:abcdef it goes not work.

      How to use instead, please?

        • 1. Re: masked input
          giant2

          in this manner goes

          $('#xxxxxx').mask(...)

           

          but in this manner no

          $('#j_id134:xxxxxx').mask(...)

           

          But richfaces put automatically a ":" to the id property even if I have specified an id.

          Is there any method to make this ":" forbidden to richfaces?

          • 2. Re: masked input
            mcmurdosound

            you'll have to escape the colon

            $('#form\\:whatever\\:id')

             

            or use a suffix selector:

            $('input[id$=abcdef]').

             

            where: abcdef is the id of your h:inputText id="abcdef"

            • 3. Re: masked input
              giant2

              Wonderfull!

              Thank you Christian!