Skip to content

Commit

Permalink
events/basics: fix create button DOM element example
Browse files Browse the repository at this point in the history
Closes gh-587
  • Loading branch information
arthurvr authored and Krinkle committed Apr 9, 2024
1 parent 497cf26 commit 5464c92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion page/events/event-basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ $( document ).ready(function(){
// Now create a new button element with the alert class. This button
// was created after the click listeners were applied above, so it
// will not have the same click behavior as its peers
$( "button" ).addClass( "alert" ).appendTo( document.body );
$( "<button class='alert'>Alert!</button>" ).appendTo( document.body );
});
```

Expand Down

0 comments on commit 5464c92

Please sign in to comment.