We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae976c7 commit c6f3c29Copy full SHA for c6f3c29
page/events/event-basics.md
@@ -42,7 +42,7 @@ $( document ).ready(function(){
42
// Now create a new button element with the alert class. This button
43
// was created after the click listeners were applied above, so it
44
// will not have the same click behavior as its peers
45
- $( "button" ).addClass( "alert" ).appendTo( document.body );
+ $( "<button class='alert'>Alert!</button>" ).appendTo( document.body );
46
});
47
```
48
0 commit comments