Hi all, (long time no see...)
I have been asked to create a page that should contain the specs of a PC system for sale. Below the specs should be some "optional extras" (CD burners, RAM, etc) which can be selected by the user.
The (simple??!) idea is to have a "Total cost" at the bottom of the page, and when ticks are added, the Total should rise.
What I know:
The host doesn't support anything serverside, so this is a job for good'ol JS. (maybe use a cgi script to email the form results?)
I'd like to use objects/arrays so the Optional Extras can be document.written dynamically and updated by the site owner.
Each array object would have (at least) two values - NAME and PRICE.
I can't find an example of this script anywhere! (Dell use this functionallity, but using page-refreshes)
What I don't know:
How to "subtract" when a tickbox is unticked (I've been thinking of using OnClick to add the value)
The search term to use to find help online!!
I'd appreciate any guidance... someone MUST have done this kind of thing before!
cheers,
Pete
Edit:: (long-time-no-UBB!)
[This message has been edited by sonicsnail (edited 05-05-2003).]