jQuery plugin for formatting inputs
        Posted  
        
            by antony.trupe
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by antony.trupe
        
        
        
        Published on 2009-06-14T03:59:39Z
        Indexed on 
            2010/03/23
            4:21 UTC
        
        
        Read the original article
        Hit count: 339
        
jQuery
|maskedinput
I want to accept values in any of the following format:
- -$5
- -$5.00
- $5
- $5.00
Is it possible to do that using Masked Input Plugin?
If not, what plug-in am I looking for?
How do I indicate a character is optional?
The code I've got so far
$.mask.definitions['~']='[ +-]';
$(".currency").mask("~$9");
© Stack Overflow or respective owner