I have a jQuery 1.5+ script, and you select a quantity in a drop-down menu (1,2,3, etc) and it multiplies that quantity by $1.50 to show you a total price. Basically – it’s multiplying the quantity selected (1, 2, 3, etc) by the base price of $1.50 – BUT – I can’t figure out how to display the price correctly with decimals – example: if you select a quantity of 2, the price displays correctly as $3 (no decimals). But, if you choose 1, or 3, the price displays as $1.5 / $4.5 – missing a 0 in the hundredths decimal place.

Here’s the code – any idea how to show a second 0 in the case that there are not already two decimals? $3 should stay as $3, but $4.5 should become $4.50, etc – I can’t get it to work without showing ALL numbers to two decimals, and that’s where I’m stuck!

```
<script type='text/javascript'>
$(function() {
$('#myQuantity').change(function() {
var x = $(this).val();
$('#myAmount').text('$'+(x*1.5));// this is the part that isn't displaying decimals correctly!
});
});
</script>
```

I’m experimenting with something like result = num.toFixed(2); but can’t get it to work yet.

Thank you Kindly!

http://cialisbob.com/ tadalafil 5mg price

https://kamagraday.com/ viagra oder kamagra

http://wardenafil.com levitra 10 mg tablet price in india

buy amoxicilin 500 mg – amoxicillin prices at walmart amoxicillin 500 mg for sale in canada today

https://himscanada.com/ generic cialis tadalafil

https://levitradd.com/ levitra 10 mg generic

accutane buy online usa – buy accutane singapore average price of accutane

http://himshairloss.com/ alopecia

https://prescriptionhim.com/ viagra without a doctors prescription

amoxicillin 250 mg – amoxil 250 Amoxil online

http://himshairloss.com/ generic propecia prescription

meet singles

free dating sites

prednisone without rx – purchase prednisone for dogs online without a prescription purchase prednisone from india

https://viagraxyu.com viagra order form

order provigil online – modafinil online provigil settlement

https://stromectolhumans.com/ ivermectin

http://iwermectin.com/ stromectol over the counter

buy lasix online europe – lasix 20g furosemide on line