Преглед изворни кода

Listing 6.3: $.loadJSON().

Frederic G. MARAND пре 9 година
родитељ
комит
c114f16a58
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      Chapter 6/06.js

+ 5 - 0
Chapter 6/06.js

@@ -6,4 +6,9 @@ $(document).ready(function () {
     $('#dictionary').load('a.html');
     alert('Loaded');
   });
+
+  $('#letter-b a').click(function (event) {
+    event.preventDefault();
+    $.getJSON('b.json');
+  });
 });