hello friends.
like the question title i want add function to my jquery script when a user choose a option of select html form field to calculate a totoal price. here is my script and the html form field
THE FIELD
<option value="0" selected="selected">Shipping</option>
<option value="0">0.00</option>
<option value="9.80">9.85</option>
<option value="19.60">19.80</option>
</select>
THE SCRIPT
<script type="text/javascript">
$("#quantityfield").change(function() {
var value = parseFloat(<?php echo $row_itemdetaille['prix']; ?>);
var quantity = parseInt($("#quantityfield").val());
var total = value * quantity;
$("#totalfield").val(total.toFixed(<?php echo $NoOfDecimals;?>));
});
</script>