|
Hi guys,
Very inspiring website - thanks a lot it has really helped me as a designer and non-programmer.
So far I been able to use and get inspired by the very nice selection of code around the site.
Unfortunately I have a JavaScript problem which I believe might be fairly simple, but simply can crack on my own - and can't find similar on codetoad.com
Basically I just need a form with 3 check boxes and an input field (with a fixed value) to output the values of the 3 check boxes added with the fixed value of the input field.
So if you select the first check box, only this value gets added to the fixed value of the output field. If 2 and 3 are selected only these values get added and output, and so on :-)
To add another dimension to the code - I would like to disable check boxes 2 and 3 if check box 1 is selected (check box 2 and 3 items are included in check box 1 - see below) - if deselecting check box 1, all check boxes should again be available.
I've tried to "draw" my ideas below - any help is greatly appreciated.
_
| | plus pack (lock, charger + extra) - $200
_
| | lock - $49
_
| | charger - $100
-------------------------------------
| basicprice: $700 + checkbox values |
Many thanks,
Kenneth, Copenhagen, Denmark
|
|
|
|
|
|
|
// |