Code Downloads & Errata
- Download the code or support files
- View errata and amendments
- Send us feedback
You selected
Learning jQuery - Fourth Edition
Jonathan Chaffer
Published 2013-06-25
Downloads
Please register your e-mail address to download files. We will e-mail you with a direct link to the code download. If you have bought this book, you can login to your account and download the code files from your account page.
Errata
- 6 submitted: last submission 24 Mar 2016Errata Type: Code | Page number: 31
In Listing 2.2,
$('#selected-plays li:not(.horizontal)').addClass('sub-level');li:not(.horizontal)').addClass('sub-level');
should be
$('#selected-plays li:not(.horizontal)').addClass('sub-level');
Errata Type: Code | Page number: 46
varmyTag = $('#my-element').get(0).tagName;
Should be
var myTag = $('#my-element').get(0).tagName;
Errata Type: Code | Page number: 46
varmyTag = $('#my-element')[0].tagName;
Should be
var myTag = $('#my-element')[0].tagName;
Errata Type: Code | Page Number: 74
In listing 3.17, the code reads in line number 2:
var bodyClass = event.target.id.split('-')[1];
It should instead be:
var bodyClass = this.id.split('-')[1];
Errata Type: Code | Page Number: 29
The line after the Downloading code examples tip reads:
Notice that the first <ul> has an ID of selecting-plays
It should instead be:
Notice that the first <ul> has an ID of selected-plays
Errata Type: Code | Page Number: 33
The ending }); just above Listing 2.5 must be omitted