瀏覽代碼

Exercise 3: add a bold wrapper on author name click.

Frederic G. MARAND 8 年之前
父節點
當前提交
05726a115f
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Chapter 5/05.js

+ 4 - 0
Chapter 5/05.js

@@ -61,4 +61,8 @@ $(document).ready(function () {
       $youWereHere.remove();
     }, 3000)
   });
+
+  $('#f-author').click(function () {
+    $(this).wrapInner('<b/>');
+  });
 });