learn.jquery.com
learn.jquery.com copied to clipboard
Bug-fix
There is an error in line 104. (And also in line 95, but this is less important.) The selector $("p.hidden") would find paragraphs that have a class hidden. But this is not the intention. Rather, we want to find classes that are hidden as understood by jQuery. Thus the selector should be: $("p.hidden")
The difference ist demonstrated by the code below, with two buttons using the different selectors.