On Sat, Jan 3, 2009 at 12:26 PM, Rick Faircloth
wrote:
>
> Hi, all...
>
> I'm writing some validation code and have an input
> for dollar amounts and would like for users to be able to
> enter digits or $ or , or . all of which are commonly
> used in US dollar values.
>
> The code I've written s
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: Why would this code not allow a $ as part of the input?
>
>
> On Sat, Jan 3, 2009 at 12:26 PM, Rick Faircloth
> wrote:
> >
> > Hi, all...
> >
> > I'm writing some validation code and have an inp
On Sat, Jan 3, 2009 at 2:28 PM, Rick Faircloth wrote:
>
> Thanks for the tips, Brian!
>
> That gave me just the insight I needed.
>
> Here's what I finally ended up with:
>
> if ( isNaN (this.value.replace(/\$|,|\./g,'')))
>
> That disregards any $ or , or . (commonly used US dollar symbols)
> to
Thanks!
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
> Behalf Of brian
> Sent: Saturday, January 03, 2009 3:55 PM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: Why would this code not allow a $ as part of the
4 matches
Mail list logo