소스 검색

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) {