I'm trying to perform different actions on a value placed in an input box depending on the selection made in two drop down boxes. On this occasion it is converting speeds. I have no problems obtaining the value of the input box but I'm a little stumped as to how I can obtain what has been selected in the drop down boxes - it doesn't seem to work the same. At the moment everything defaults to the first if statement of converting from FPS to MPH even if that isn't selected.
I've only 'implemented' the maths for converting from FPS to MPH/KMH/MS at the moment and it looks like I'm going to end up with a lot of if else statements so also wondering if there might be a better way about it.
If your left confused I'd suggest just looking at it: http://jsfiddle.net/Deva/RPkpW/