Browse Source

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

Frederic G. MARAND 8 years ago
parent
commit
05726a115f
1 changed files with 4 additions and 0 deletions
  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/>');
+  });
 });