/    Sign up×
Community /Pin to ProfileBookmark

Javascript Exercise Problem

Hi,

I’m very new to Javascript, just learning the basics at the minute. I’ve done a few very simple exercise before but am stuck with this one as I’m not to sure how to use JS to calculate the value whether boxes are checked or not and to allow the user to only select one box.

Here’s the exercise anyway, any help is appreciated (P.S I can create the form myself no problem, it’s just the JS part I’m lost with).

-Create a form which allows people to calculate the price of a computer.

The basic computer including a mouse & keyboad cost 1000 euro.

-Using a preselected check box for each mouse & keyboard remove (or add) 50 euro for each that is slected or not.

-Offer a choice of 3 screens at a supplement of 100, 150 and 200 euro. You will need to make sure that one maximum is selected.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@KuriyamaAug 17.2009 — http://www.w3schools.com/JS/js_examples_3.asp

Behold. . . your new best friend ?
×

Success!

Help @RobbieF spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.22,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...