Originally Posted by Old Pedant
Actually, if you use <select>s, you don't need the key/value pairs.
<option value="9000">Mighty Joe</option>
<option value="7000">Hairy Moe</option>
<option value="100">Wimpy Woe</option>
SO the same for the other combatant. Get the .value
of each <select> and presto! You have the points.
The only problem im having is finding a way to call this so when a user puts in combatant 1 and combatant 2, it gives him a message saying combatant 2 wins. I can't figure out how to do it in the submit box from my last code.
The function that you gave me the last time:
function dotranslate( btn )
var word = btn.form.translateFrom.value;
btn.form.translateTo.value = dictionary[ word.toLowerCase() ];
is very confusing and I can't seem to work it for this one, and get a second box to work.