/    Sign up×
Community /Pin to ProfileBookmark

I have been using a javascript on a friends homepage and really need help.
The script is on this link:
[url]http://javascript.internet.com/calculators/checkbox-calculator.html[/url]

Can anybody help me to change the value of the boxes??? I havent worked with javascript before, so I`m new at this!!!
I have several items that I wonna put in a list for viewers to calculate a total and I have different values for every box. Anybody?
and I wish you all a very merry Christmas:p

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@David_HarrisonDec 23.2003 — The prices that are used for each check box are kept in variables that are declared in calculate.js, open calculate.js in wordpad and you should see this near the beginning:

var item1price = 100;

var item2price = 100;

var item3price = 100;

var item4price = 100;

Simply change the numbers to other numbers that you want and save the document.
×

Success!

Help @ullara 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 6.1,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...