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 RedWolves committed Dec 25, 2014
1 parent ae976c7 commit c6f3c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion page/events/event-basics.md
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 c6f3c29

Please sign in to comment.