diff options
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/ajax.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/ajax.js b/app/assets/javascripts/ajax.js index 2b2bb3e..475dddc 100644 --- a/app/assets/javascripts/ajax.js +++ b/app/assets/javascripts/ajax.js @@ -3,9 +3,10 @@ function populate() { //make a form element var e = document.getElementById("tournament_id"); var gameType = e.options[e.selectedIndex].text; - if (gameType != "") { + if (gameType != "Select a Game Type") { + alert(gameType + " was Selected!"); //populate optionArray - + //select * from tournament_settings where gametype = GameType for(var option in optionArray){ //identify the number of ; |