Browse Source

Listing 5.2: setting multiple attributes at once.

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

+ 4 - 1
Chapter 5/05.js

@@ -2,5 +2,8 @@
 $(document).ready(function () {
   'use strict';
 
-  $('div.chapter a').attr({rel: 'external'});
+  $('div.chapter a').attr({
+    rel: 'external',
+    title: 'Learn more at Wikipedia'
+  });
 });