codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  How to multiply and disable checkbox value in one shot  KennethDK at 10:07 on Thursday, February 26, 2009
 

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








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: hex code of a number
•  Re: hex code of a ASCII char
•  Re: merge two files by ID
•  Re: number of regex match
•  Re: parser project needs perl programmer
•  Re: perl script to program
•  Re: help me on say_aplha plzzzzz
•  Re: how to install win32::GuidGen on windows 64 bit OS
•  how can I.....web crawling for vertical job search engine


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2009