Explorar o código

Listing 5.4: selecting using a *-match on href.

Frederic G. MARAND %!s(int64=9) %!d(string=hai) anos
pai
achega
6c1e58defd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Chapter 5/05.js

+ 1 - 1
Chapter 5/05.js

@@ -2,7 +2,7 @@
 $(document).ready(function () {
   'use strict';
 
-  $('div.chapter a').attr({
+  $('div.chapter a[href*="wikipedia"]').attr({
     rel: 'external',
     title: 'Learn more at Wikipedia',
     id: function (index, oldValue) {