View Single Post
Old 08-14-2007, 01:17 AM   #1 (permalink)
Salchester
Salchester
 
Salchester's Avatar
 
Join Date: Jul 2005
Location: In a house
Posts: 230
Salchester is an unknown quantity at this point
Pounds & Ounces Calculator

Hi,

Using JavaScript, how do I subtract a weight from a drop-down menu from another drop-down menu, to calculate the amount of weight loss?
In total there should be 6 drop-down boxes, these are the following:

1: Pounds (Before), 2. Ounces (Before), 3. Fraction (Before), 4. Pounds (After), 5. Ounces (After), & 6. Fraction (After)

For example if:

Drop-Down Box 1 = 5
Drop-Down Box 2 = 3
Drop-Down Box 3 = ¾

Drop-Down Box 4 = 3
Drop-Down Box 5 = 2
Drop-Down Box 6 = ¼

Answer = 2.1½ have been lost.
__________________
Many Thanks, in advance!

Salchester.
The Future Is Here - Are You Ready?
Salchester is offline   Reply With Quote