Auto-Add

nike_guy_man's picture

They have: 840 posts

Joined: Sep 2000

I have a series of checkboxes with dollar values in them, and I wan't them added into another form field.
IE The user checks boxes 1 and 5 which have values $1 and $4
I want form field TOTAL to read $5, but when they uncheck box 5, it reads $1
Get it?
I'm figuring Javascript and I'll look around on dynamic drive
Thanks

Laughing out loud

He has: 1,016 posts

Joined: May 2002

Take a look at javascriptsource.com
I'm sure they have a few scripts you can look at to see how it's done.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.