Spaces:
Runtime error
Runtime error
updated: USD formatting
Browse files- templates/index.html +1 -1
templates/index.html
CHANGED
|
@@ -134,7 +134,7 @@
|
|
| 134 |
$('#respBmi').html("<strong>BMI:</strong> " + response.bmi);
|
| 135 |
$('#respChildren').html("<strong>Children:</strong> " + response.children);
|
| 136 |
$('#respRegion').html("<strong>Region:</strong> " + response.region);
|
| 137 |
-
$('#insurance_cost').html(response.insurance_cost);
|
| 138 |
console.log(response);
|
| 139 |
},
|
| 140 |
error: function (error) {
|
|
|
|
| 134 |
$('#respBmi').html("<strong>BMI:</strong> " + response.bmi);
|
| 135 |
$('#respChildren').html("<strong>Children:</strong> " + response.children);
|
| 136 |
$('#respRegion').html("<strong>Region:</strong> " + response.region);
|
| 137 |
+
$('#insurance_cost').html(parseFloat(response.insurance_cost).toFixed(2) + ' USD');
|
| 138 |
console.log(response);
|
| 139 |
},
|
| 140 |
error: function (error) {
|