[jQuery] Re: inserting commas into a price value

2009-04-02 Thread mkmanning
http://plugins.jquery.com/project/currencyFormat On Apr 2, 9:58 am, Adam adambu...@gmail.com wrote: I am trying to manipulate a simple value (text node) which is a home price from 123456789 to be 123,456,789. Anyone have a resource? Thanks! -Adam

[jQuery] Re: inserting commas into a price value

2009-04-02 Thread Charlie Griefer
nice! :) um... err... I've actually got a need to take a 10 digit number and convert it to US phone format (e.g. 99 becomes (999) 999-). Any chance of whipping that up? :) I did look at the plugin you just posted, thinking I could tweak it to fit my needs. But it's a bit over my

[jQuery] Re: inserting commas into a price value

2009-04-02 Thread mkmanning
For the phone, you can just do a regex: var p = '99'; p.replace(/(\d{3})(\d{3})(\d{4})/, ($1) $2-$3) On Apr 2, 11:18 am, Charlie Griefer charlie.grie...@gmail.com wrote: nice! :) um... err... I've actually got a need to take a 10 digit number and convert it to US phone format (e.g.

[jQuery] Re: inserting commas into a price value

2009-04-02 Thread Charlie Griefer
Thank you kindly. I'll be implementing that this evening :) On Thu, Apr 2, 2009 at 11:33 AM, mkmanning michaell...@gmail.com wrote: For the phone, you can just do a regex: var p = '99'; p.replace(/(\d{3})(\d{3})(\d{4})/, ($1) $2-$3) On Apr 2, 11:18 am, Charlie Griefer

[jQuery] Re: inserting commas into a price value

2009-04-02 Thread Adam
Thanks Michael! Works well. -Adam On Apr 2, 12:04 pm, mkmanning michaell...@gmail.com wrote: http://plugins.jquery.com/project/currencyFormat On Apr 2, 9:58 am, Adam adambu...@gmail.com wrote: I am trying to manipulate a simple value (text node) which is a home price from 123456789 to