This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getInput(e){ | |
// only run if the user presses the enter key | |
if(e.keyCode == 13){ | |
// validate input | |
var userIn = document.getElementById("userInput").value; | |
var soul = document.getElementById("sel"); | |
var vally = soul.options[soul.selectedIndex].value; |