View Single Post
Old 01-02-2013, 03:33 PM   PM User | #8
jmrker
Senior Coder

 
jmrker's Avatar
 
Join Date: Aug 2006
Location: FL
Posts: 2,764
Thanks: 29
Thanked 453 Times in 447 Posts
jmrker will become famous soon enough
Lightbulb

Have you tried here?
Code:
// select quantity(litres)
//	var quantityChosen = parseFloat(document.forms[0].litres.value);

var quantity=parseFloat(document.forms[0].litres.value);  // probably mis-labeled as value could be gallons or litres (???)
var quantityChosen=document.getElementById("litres").checked?quantity:quantity*4.54;
jmrker is offline   Reply With Quote