I have a dropdown list and it has values which are to 2 decimal places.
<label for="delivery">Delivery:</label> <select id="delivery" name="delivery"> <option value="1.50">Fast</option> <option value="2.50">Medium</option> <option value="3.50">Slow</option> </select> How can I call this in Javascript, I know I have to use the toFixed(2) somewhere in the line below, but I'm unsure where to put it.
var delivery = parseInt($('#delivery').val()); Also, would I put it in the div in where it is outputted or in the calculation, or both?
Jonah