Explorar o código

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

Frederic G. MARAND %!s(int64=8) %!d(string=hai) anos
pai
achega
05726a115f
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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/>');
+  });
 });