jeter20131220 %!s(int64=4) %!d(string=hai) anos
pai
achega
80adab9194
Modificáronse 1 ficheiros con 8 adicións e 2 borrados
  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);