Robert Granlund
asked on
jQuery
I know enough jQuery and javascript at this point to get myself in trouble. I have a script that is developing a figure. I seem to be jumping through a lot of hoops to create that figure. The following is what I have. What I would like to know is if there is a simpler way to write the following:
<script>
var roadside = 10;
var options_total = parseFloat(liabil_total) + parseFloat(med_total) + parseFloat(veh_total);
// START Final Price
var pre_premium_total = parseFloat(damage_total) + parseFloat(options_total);
var final_premium_total = parseFloat(pre_premium_total) + parseInt(roadside);
var premium_total = Math.round(final_premium_total);
// END Final Price
</srcipt>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.