浏览代码

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

Frederic G. MARAND 9 年之前
父节点
当前提交
6c1e58defd
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) {