• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Can anyone help me fix this html code

tbonfim10

Junior Member
I'm not sure why the calculating button isn't working and I need this fixed by the end of this week. Any help is greatly appreciated, and if you find anything else wrong please let me know.


<form>
<h1>
Please fill in the following information
</h1>
<p>
First name:<input type="text" name="Firstname" />
</p>
<p>
Last name:<input type="text" name="Lastname" />
</p>
<p>
Address:<input type="text" name="Address" />
</p>
<p>
City:<input type="text" name="City" />
</p>
<p>
Zip:<input type="text" name="Zip" />
</p>
<p>
Email:<input type="text" name="Email" />
</p>
<p>
Phone:<input type="text" name="Phone" />
</p>
</form>
<form name="Calculate My Total">
<select name="Type of Inspection" onchange="calculatePrice()" id=
"Type of Inspection">
<option value="0">
Select a type of home inspection
</option>
<option value="0">
General Home Inspection
</option>
<option value="165">
Wind Mitigation and 4 Point Inspection
</option>
<option value="100">
Wind Mitigation Only
</option>
<option value="100">
4 Point Inspection Only
</option>
<option value="100">
Citizen's Roof Inspection
</option>
</select> <select name="Size of Home" onchange="calculatePrice()"
id="Size of Home">
<option value="0">
Select the Size and Type of Home
</option>
<option value="325">
Single Family Home 2,500 sq. ft. and Under
</option>
<option value="350">
Single Family Home 2,501-3,000 sq. ft.
</option>
<option value="375">
Single Family Home 3,001-3,500 sq. ft.
</option>
<option value="425">
Duplex 2,500 sq. ft. and Under
</option>
<option value="460">
Duplex 2,501-3,000 sq. ft.
</option>
<option value="495">
Duplex 3,001-3,500 sq. ft.
</option>
<option value="300">
Condo With Attic 2,500 sq. ft. and Under
</option>
<option value="325">
Condo With Attic 2,501-3.000 sq. ft.
</option>
<option value="350">
Condo With Attic 3,001-3,500 sq. ft.
</option>
<option value="275">
Condo Without Attic 2,500 sq. ft. and Under
</option>
<option value="300">
Condo Without Attic 2,501-3,000 sq. ft.
</option>
<option value="325">
Condo Without Attic 3,001-3,500 sq. ft.
</option>
</select> <select name="Pool" onchange="calculatePrice()" id=
"Pool">
<option value="0">
Is there a pool?
</option>
<option value="0">
No
</option>
<option value="25">
Yes
</option>
</select> <select name="Dock" onchange="calculatePrice()" id=
"Dock">
<option value="0">
Is there a dock?
</option>
<option value="0">
No
</option>
<option value="25">
Yes
</option>
</select> <select name="Seawall" onchange="calculatePrice()" id=
"Seawall">
<option value="0">
Is there a seawall?
</option>
<option value="0">
No
</option>
<option value="25">
Yes
</option>
</select>
</form>
<p>
<button type="button" onclick=
"calculatePrice()">Calculate</button> The new calculated price:
</p>
<form>
<input type="text" id="PicExtPrice" size="8" />
</form>
 
HTML looks functional. I guess it's not matching with the javascript. Who can say?
 
Last edited:
This should maybe be in the programming forum instead. And it should definitely be in a code block.
 
Where is the code for "calculatePrice()"?
Use IE debugger or Chrome debugger to step into "calculatePrice()"
 
Back
Top