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
clomiphene online 100mg – clomiphene generic buy clomid online
https://ivermectineffects.com/ ivermectin over counter
best mail order pharmacy canada – cialis online usa pharmacy script pharmacy
https://ivermectinovercounter.com/ ivermectin uses
http://ivermectineffects.com ivermectin for humans over the counter is
stromectol tab – oral stromectol cost ivermectin 200mg
online slots for real money – play online casino real money real money online casino
tui na impotence tea for high blood pressure
ivermectin https://ivermectinhome.com
non prescription erection pills – over the counter ed pills that work ed miracle pill
levitra pills south africa https://levitrair.com vardenafil for sale
http://ivermectinus.com/ buy ivermectin 6mg
http://zithrozpack.com/ azithromycin
health insurance private risks of poor physical health
stromectol https://ivermectinhome.com
prednisone 5mg pills – cost for prednisone 50mg online prednisone 5mg
generic viagra safe – where to buy viagra usa how to get real viagra cheap
stromectol 3mg tablets buy online http://stromectolus.com ivermectin cream
signs of std men health care coverage
ivermectin for humans dosage https://ivermectinhome.com
generic cialis for sale – Cialis online store cialis tab 10mg
ivermectin ebay – ivermectin price comparison ivermectin covid
http://albuterolotc.com/ ventolin hfa inhaler dosage
why is health care so expensive in the first place? cm doctor
can humans take ivermectin paste https://ivermectinhome.com
ivermectin http://stromectolus.com stromectol ivermectin
erectile dysfunction definition – signs of ed erectile dysfunction age
how many people gained health care coverage with obama care in its first year what essential oil is good for erectile dysfunction
ivermectin for humans for sale https://ivermectinhome.com
ivermectin tablets for humans https://ivermcov.com/# ivermectin tablets
javascript-help.li and pharmacies online http://pharmvolk.com buy online prescription medication quickly
shelby county al health department http://ventolinhfaer.com/ how much is albuterol sulfate
ventolin uk price – ventolin cost uk cheap albuterol
2015 blood pressure guidelines chart find a doctor in my area
ivermectin https://ivermectinhome.com
javascript-help.li with ivermectina dosis https://ivermectini.com ivermectin
doxycycline 300 mg tablet – 200 mg doxycycline doxycycline 100mg best price
javascript-help.li reviewed stromectol over the counter walgreens pharmacy http://ivermectiny.com where to buy ivermectin for humans
venereal disease names ivermectin http://iveramectin.com ivermectin where to find
healthcare plus federal credit union http://kamagraday.com kamagra oral
javascript-help.li recommended ivermectin tablets dosage http://ivermectiny.com ivermectin dosage for humans in pounds
online doctor viagra https://viagrob.com how well does viagra work
javascript-help.li reviewed stromectol 12mg http://ivermectinhum.com generic ivermectin cream
online pharmacy methylprednisolone with no prescription – lyrica cream cost of lyrica 100 mg
ivermectin generic cream – ivermectin price buy ivermectin canada
prednisone over the counter canada – deltasone 50 mg prednisone without a rx
http://dapoxetineus.com – priligy in uk
zithromax pediatric dosing https://azithrozpack.com generic zithromax
purchase stromectol – stromectol ivermectin tablets stromectol 3 mg
ivermectin new zealand https://ivermectin1.com/ ivermectin tablets
https://stromectolo.com – ivermectin for humans
i need help with my essay – academic writers online professional paper writers
ivermectin 4000 – ivermectin tablets order ivermectin stromectol
https://ivrmectin.com – can humans take horse ivermectin
hydroxychloroquine side effects common – plaquenil dose calculator prednisone buy
https://stromectolforte.com/# ivermektin 1 grädde generisk
cetirizine d – https://allergyd.com
ivermectin 10 ml – stromectol order stromectol generic name
stromektoli https://stromectolforte.com/# ivermectin 3 mg for humans stromectol germany
tadalafil price from india – tadalafil tablets 20mg cheapest tadalafil cost
purchase prednisone from india – order deltasone cost of 10 mg prednisone
stromectol uk https://stromectoloff.com/ stromectol
purchase tadalafil 5mg online – cialis next day delivery legal online pharmacy coupon code
stromectol human – stromectol cost india ivermectin
levitra viagra or cialis http://www.levitraoff.com levitra sublingual bayer
generic ivermectin http://stromectolforte.com/# buy ivermectin ivermectin over the counter
i need viagra – viagpss canadian pharmacy viagra paypal
stromektol satД±n al https://ivermecton.com/ ivermectin 3 mg
discount coupon cialis – cialis super active cialis prescription cost uk
online casino usa real money – legitimate online slots for money casino online gambling
the best doctor http://allergyd.com – major brand cetirizine
viagra cialis and levitra http://www.viagwdp.com/ generic viagra soft online prescription viagra
https://levitrahims.com – order levitra generic levitra
buy real viagra online cheap https://www.viagwdp.com/ poor mans viagra viagra tablet online india
https://lasixotc.com does turmeric help with erectile dysfunction
accutane in mexico – isotretinoin generic accutane india cost
http://fildenahim.com – fildena side effects
online casinos for usa players – site best online casino usa
hasan zirak falak
where to buy cheap viagra – canadian viagra viagra nz over the counter
mdma und viagra pfizer viagra kaufen viagra ohne rezepte kaufen auf rechnung viagra wie lange
purchase hydroxychloroquine generic – cheap hydroxychloroquine valacyclovir 500mg without prescription
sildalis pill – finasteride for sale online oral glucophage 500mg
buy acillin sale – buy metronidazole online plaquenil 200mg oral
buy hydroxychloroquine 400mg for sale – buy generic plaquenil 400mg hydroxychloroquine price
order viagra generic – generic cialis cialis 40mg without prescription
tadalafil online with out prescription where to buy tadalafil on line
canada generic tadalafil prescription tadalafil online
cialis at canadian pharmacy cialis without prescription
tadalafil blood pressure tadalafil cost walmart
lowest price cialis buy tadalis
where to get tadalafil tadalafil without a doctor prescription
tadalafil online with out prescription cheap cialis pills for sale
cheapest tadalafil cost tadalafil brands
https://cialisicp.com/ cialis without a prescription
buy ivermectin canada http://www.ivermectinoge.com/
https://ivermectinuni.com/ ivermectin tablets for humans
buy stromectol buy stromectol online stromectol canada
stromectol online canada stromectol 3 mg tablets
ivermectin otc