Missing append statement
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!