function subtotal(){ var a = document.getElementById("sff").value; var b = document.getElementById("osf").value var stotal = a+b; document.getElementById("st").innerHTML = "$" + stotal; }</pre>
<pre lang="HTML"><input type="text" id="osf" placeholder="$0.00" style="float:left;" onchange="subtotal()"/> <input type="text" id="sff" placeholder="$0.00" style="float:left;" onchange="subtotal()"/> <select style="margin: 3px 0 0 55px; width:48%; position: absolute; float: left; "> <option value="">(Select Number Of Years Of Agent Service To Purchase)</option> <option value="a1">1 Year @ $99.00/yr (Service to December 2015)</option> <option value="a2">SAVE! 2 Years (@ $89.10/yr) for only $178.20 (Service to December 2016) - Save $19.80</option> <option value="a3">SAVE! 3 Years (@ $80.52/yr) for only $241.56 (Service to December 2017) - Save $55.44</option> <option value="a4">SAVE! 4 Years (@ $73.06/yr) for only $292.24 (Service to December 2018) - Save $103.75</option> <option value="a4">SAVE! 5 Years (@ $66.56/yr) for only $332.80 (Service to December 2019) - Save $162.20</option> </select> <input type="checkbox" id="cbx2"/>($35.00) - Prepare IRS Form SS-4 (Federal EIN Number)</pre>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)