aboutsummaryrefslogtreecommitdiffstats
path: root/demos/effect/switchClass.html
diff options
context:
space:
mode:
Diffstat (limited to 'demos/effect/switchClass.html')
-rw-r--r--demos/effect/switchClass.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/effect/switchClass.html b/demos/effect/switchClass.html
index 0ac90fe93..f7c6d12da 100644
--- a/demos/effect/switchClass.html
+++ b/demos/effect/switchClass.html
@@ -16,7 +16,7 @@
</style>
<script>
$(function() {
- $( "#button" ).click(function(){
+ $( "#button" ).on( "click", function(){
$( ".newClass" ).switchClass( "newClass", "anotherNewClass", 1000 );
$( ".anotherNewClass" ).switchClass( "anotherNewClass", "newClass", 1000 );
});