Learning Web App Development

by Semmy Purewal

Missing append statement

page 252

26 Jul 2014

In the example code at the bottom of page 252, we’re missing the line that appends the newly created tab to the tabs section of the DOM. To fix this, we simply need to modify the last few lines of the function so it looks like this:

        $("main .content").append($content);
        return false;

    // add aElement to the tabs
    $("main .tabs").append($aElement);

Thanks to James FitzGibbon for reporting this issue!