Browse Source

Listing 3.11: unwanted bubbling.

Frederic G. MARAND 9 năm trước cách đây
mục cha
commit
6765350ff3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Chapter 3/03.js

+ 1 - 1
Chapter 3/03.js

@@ -1,7 +1,7 @@
 $(document).ready(function () {
   'use strict';
 
-  $('#switcher h3')
+  $('#switcher')
     .hover(
       function () { $(this).addClass('hover'); },
       function () { $(this).removeClass('hover'); })