summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ajax.js
blob: 31578dd2fb7c574a42b392c3ffda1b51f98ba756 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function populate() {
	//populate optionArray
	//make a form element
	var e = document.getElementById("tournament_id");
	var gameType = e.options[e.selectedIndex].text;
	if (gameType != "Select a Game Type") {
		alert(gameType + " was Selected!");
		//populate optionArray via AJAX
		//select * from tournament_settings where gametype = GameType
		for(var option in optionArray){
			//identify the number of 
			;
		}
	};
}