jeter20131220 před 4 roky
rodič
revize
80adab9194
1 změnil soubory, kde provedl 8 přidání a 2 odebrání
  1. 8 2
      goto.js

+ 8 - 2
goto.js

@@ -13,17 +13,23 @@
 
 
 // jquery
-
-$.ajax('http://172.105.205.52:8000/tags', {
+$(document).ready(function(){
+    $.ajax('http://172.105.205.52:8000/tags', {
     type: 'GET',  // http method
     headers: {'Access-Control-Allow-Origin': '*'},
     success: function (res) {
+        var a  = res;
         console.log(res);
     },
     error: function (err) {
         console.log(err);
     }
 });
+    $("#submit").bind('click',function(){
+        var idiom=$("#idiom").val();
+
+    });
+});
 
 // $.get("date-time.php", function(data){
 //     console.log(res);