Frederic G. MARAND 9 лет назад
Родитель
Сommit
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');
+  });
 });