Jump to content


Photo

Chapter 10 Page 404 - Bad Code


  • Please log in to reply
No replies to this topic

#1 Midnight4

Midnight4

    New Member

  • Members
  • Pip
  • 7 posts

Posted 18 October 2012 - 09:16 AM

All,

this is getting really frustrating as I find yet another error in text of this book. It doesn't seem to have gone through as much checking as other books I have read in the series (Javascript, PHP and mySQL, and HTML).

On page 404 the code in the exercise states:

$( "#swatch" ).$( "#swatch" ).css( "background-color",my_rgb);

This is an error. There should be no duplication of the .$( "#swatch" )

The correct code is:

$( "#swatch" ).css( "background-color",my_rgb);




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users