Auto Sum Checkboxes

By Jay Rumsey on Apr 4, 2008

General

As the user selects items in the form, this script will display a running total automatically. No need to keep reloading the page, and no surprises for your user at the check-out point. Easy to implement into your existing forms.


Game Order Form

Game 1 (  9.99)
Game 2 (19.99)
Game 3 (27.50)
Game 4 (45.65)
Game 5 (87.20)
Total cost: $

Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: autoSumCheckboxes.js


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Comments

Blog comments powered by Disqus