Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
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
Old 08-14-2007, 05:12 AM   #2 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 676
DJMaze is on a distinguished road
Where is your code? (reoccurring question!!!)
__________________

UT: Ultra-kill... God like!
DJMaze is offline   Reply With Quote
Old 08-14-2007, 05:38 PM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
hey look, i found the answer here.
__________________
Mike
sde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript: Drop-Down Menu Calculator Salchester HTML, XML, Javascript, AJAX 0 05-10-2007 11:06 AM
Pounds & Ounces Calculator Salchester HTML, XML, Javascript, AJAX 0 03-21-2007 11:28 AM
Scientific Calculator Drift Java 7 06-04-2006 01:45 AM
calculator applet davidmccabe Java 4 05-07-2006 02:10 PM


All times are GMT -8. The time now is 06:40 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting