-
Page 7, 4th code snippet
$("#someElement")[0].innerHTML =
"I have added some text to an element");
should be
$("#someElement")[0].innerHTML =
"I have added some text to an element";
-
Page 44, Section 2.3.5, syntax for find()
The description of the find() method fails to
note that descendents of the elements in the wrapped set
are checked for adherance to the specified expression.
-
Page 45, Section 2.3.5
The contains() method has been removed as of jQuery 1.2.
To add a method that works like the old contains() method:
jQuery.fn.contains = function(text) { return $(this).filter(":contains("+text+")"); }
-
Page 159, Listing 6.1
line 13 (the annotated line) should read:
$.browser.msie ? 2 : select.options[2]
The trailing [2] was accidentally dropped during typesetting.
-
Pages 279-280, paragraph spanning these pages
The paragraph should read:
If you care to inspect the code of the lab, you'll note that the
first two items of information are displayed by a beforeSubmit
callback, and the third by the target option. (For clarity,
the beforeSubmit function isn't shown as part of the options display.)