What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

HTML Form

derajlance

New member
Hello all! - I have a simple HTML form that I am attempting to create for my employees to use to calculate the amount of credit to issue customers when they are without service. However, I cannot figure out how to get the form to calculate or if I've even set this up properly. - Once the agent clicks calculate, it should add InternetPackage+PhonePackage+AddOns, divide by 30, then multiple by Number of Days.


<FORM Name="TimeWithoutService">
<SELECT NAME="InternetPackage" onChange="calculatePrice()" id="InternetPackage">
<OPTION value="0">Select Internet Package</OPTION>
<OPTION value="49.95">100M bps</OPTION>
<OPTION value="79.95">1 Gig</OPTION>
<OPTION value="99.95">2 Gig</OPTION>
</SELECT>
<br>
<br>
<SELECT NAME="PhonePackage" onChange="calculatePrice()" id="PhonePackage">
<OPTION value="0">Select Phone Package</OPTION>
<OPTION value="0">None</OPTION>
<OPTION value="29.95">Voice Bundled with Internet</OPTION>
<OPTION value="39.95">Voice without Internet</OPTION>
</SELECT>
<br>
<br>
<SELECT NAME="AddOns" onChange="calculatePrice()" id="AddOns">
<OPTION value="0">Select Add-on Options</OPTION>
<OPTION value="0">None</OPTION>
<OPTION value="4.95">Managed Wi-Fi</OPTION>
<OPTION value="3">Safe & Secure</OPTION>
<OPTION value="7.95">Managed Wi-Fi AND Safe & Secure</OPTION>
</SELECT>
<br>
<br>
<label for="days">Number of Days:</label><br>
<input type="text" id="days" name="days">
</FORM>
<br>
<br>
<button type="button" onclick="calculatePrice()">Calculate</button>
The new calculated price:<INPUT type="text">
 
Back
Top