Page Chapter 17. Using jQuery, Page 265
Tue, 10/02/2007 - 2:27pm — rockoyster
Location on the page:
Code sample under jQuery Within Drupal
Error:
Line 5 contains an extraneous ";" and reads:
});,
Correction:
Line 5 should read:
}),
Description of the Error:
Original code results in PHP parse error
[Nope. Look at this carefully. The correct line 5 is })', because the curly bracket closes the function(){} and the right parenthesis closes the ready() method and the sinqle quote closes the string that is the first parameter for drupal_add_js(). -JV]
