Explorar o código

Listing 6.11: $.post() with a query.

Frederic G. MARAND %!s(int64=9) %!d(string=hai) anos
pai
achega
db6f1218e3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Chapter 6/06.js

+ 1 - 1
Chapter 6/06.js

@@ -74,7 +74,7 @@ $(document).ready(function () {
   $('#letter-e a').click(function (event) {
     event.preventDefault();
     var requestData = { term: $(this).text() };
-    $.get('e.php', requestData, function (data) {
+    $.post('e.php', requestData, function (data) {
       $('#dictionary').html(data);
     });
   });