Link to home
Start Free TrialLog in
Avatar of Robert Granlund
Robert GranlundFlag for United States of America

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>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Phil Phillips
Phil Phillips
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial