If amount will be 2200 then your var “d” will give an error as undefined variable and script will not execute this script only work when your amount is 2200.00 so I have edited your script and used it in my website ;) below is revised code which might solve this issue.

Man….this is frustrating. I’ve played with content (HTML) on my page before, and thought throwing in a few lines of Java wouldn’t be too tough. It’s crazy tough. I never would’ve taken it on – I outsource any design (etc), but the time it’s taken to make a simple page has been astounding.

Still stuck. All I want to do is have it display a few numbers with commas for ease of reading. There’s a variable (a couple, actually, but I’m hoping if I get the method down I can repeat it).

Here’s the section (I AM ADDING SPACES WITHIN THE WORD S C R I P T SO IT WILL DISPLAY HERE – THAT’S THE ONLY DIFFERENCE)

We have a pretty good* newsletter.

Email Address

CSS-Tricks* is created, written by, and maintained by Chris Coyier and a team of swell people. It is built on WordPress, hosted by Media Temple, and the assets are served by MaxCDN. The fonts are Source Sans Pro and Source Code Pro. It is made possible through sponsorships from products and services we like.