Browse Source

Listing 5.7: insert links with insertAfter().

Frederic G. MARAND 9 years ago
parent
commit
4c7bb55200
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Chapter 5/05.js

+ 1 - 1
Chapter 5/05.js

@@ -13,6 +13,6 @@ $(document).ready(function () {
   });
   });
 
 
   // Add "back to top" links.
   // Add "back to top" links.
-  $('<a href="#top">back to top</a>');
+  $('<a href="#top">back to top</a>').insertAfter('div.chapter p');
   $('<a id="top"></a>');
   $('<a id="top"></a>');
 });
 });