1 Reply Latest reply on Oct 19, 2009 9:13 AM by oneworld95

    Display $ sign in text field

    oneworld95

      Hi. We have a requirement to show a "$" (dollar sign) at the start of a text field, whether the field has any value or is blank. The user cannot delete it. Is this possible with RichFaces? Thanks.

        • 1. Re: Display $ sign in text field
          oneworld95

          I found this: http://www.meiocodigo.com/projects/meiomask/
          But this code has an issue:

          jQuery(function($){
           $("#txtEstimatedRetailValue").mask("$999999",{placeholder:" "});
          });
          


          I'm trying to tell the mask function that the field can have a maximum of 6 digits (such as $200000), but it can have just 1 (i.e. $5).

          However, unless the user enters the maximum number of digits, the field won't hold its value. Any solutions? Thank you.