"Refactoring the code using a loop" code not working
Closed this issue · 3 comments
On page 136 of the PDF, the author provides a third (out of four) method for creating the "active tab" behavior. In this method he employs a for loop using an index variable called tabNumber. The tabNumber is then used to populate the numeric value inside the a:nth-child pseudo class selector.
However, this code does not work as the third tab is always "active", no matter which of the three tabs is clicked.
Thanks for the feedback!
This was reported shortly after the book came out and an explanation of the issue is here:
http://learningwebappdev.com/errata/chapter4/2014/03/16/chapter-4-refactoring-using-for-loop.html
It's fixed in the first ebook update, which should go out any day now.
Thanks again for reporting the issue, and please let me know if you find any others!
Wow, now that's what I call responsive! Thanks for the quick reply!
My pleasure. :)
Feel free to ping me any time with questions.