learn.jquery.com icon indicating copy to clipboard operation
learn.jquery.com copied to clipboard

Bug-fix

Open epsilon-greater-zero opened this issue 5 years ago • 0 comments

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.

Demo

epsilon-greater-zero avatar Jan 29 '21 17:01 epsilon-greater-zero