![]() |
Dynamic Calculator Help
I am wanting to create a simple dynamic calculator.
That when a radio button in the HTML <form> is selected is adds a value to the calculation and displays it live below. For example the select a package: [] one [] two [] three then they choose an extra's they want to add on: [] one [] two [] three [] four and below it displays this: [ The name of package selected + value of it in (£) ] + The value of all the add ons they have selected in (£) ... I'm sure it's not that hard to write, i'm just not familar with the javascript language. Thanks in advance! Haydn |
Sounds like homework! Or do you think that this forum is a free coding service?
Show us your effort and then I am sure that someone will correct/improve it for you. If the user may select more than one extra then you need to use checkboxes, not radios. This will give you a start:- Code:
<form name= "myform">BTW, the time to say "thanks" is afterwards, not beforehand which gives the - doubtless unintended - impression that you take other people's voluntary unpaid assistance and expertise for granted. Or as British politician Neil Kinnock put it, "Don't belch before you have had the meal." Prefer to use "please" beforehand and if you find a response helpful then you can use the "Thank User For This Post" button. The ball is unpredicatble, but not all the time. - Football Commentator, Radio 5 Live |
Quote:
We expected you to show us a code, even wrong :rolleyes: Nevermind, here's a basic example, but on using list boxes: Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
Hi,
sorry that I came accross that way. I just jumped straight to the forum rather thinking about it... Thank you for your examples and help but its not quite what I'm looking for.. So I have had a play around with the examples and snippets of code and this what i have so far: Code:
<html> |
| All times are GMT +1. The time now is 08:40 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.