summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ajax.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/ajax.js')
-rw-r--r--app/assets/javascripts/ajax.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/assets/javascripts/ajax.js b/app/assets/javascripts/ajax.js
new file mode 100644
index 0000000..2b2bb3e
--- /dev/null
+++ b/app/assets/javascripts/ajax.js
@@ -0,0 +1,14 @@
+function populate() {
+ //populate optionArray
+ //make a form element
+ var e = document.getElementById("tournament_id");
+ var gameType = e.options[e.selectedIndex].text;
+ if (gameType != "") {
+ //populate optionArray
+
+ for(var option in optionArray){
+ //identify the number of
+ ;
+ }
+ };
+} \ No newline at end of file