Syntax of jQuery Callback Functions
$(selector).hide(speed,callback);
How to Call back in jQuery?
1 2 3 4 5 6 7 |
$(document).ready(function(){ $("button").click(function(){ $("p").hide("slow", function(){ alert("The paragraph is now hidden"); }); }); }); |
Without Call back-Function in jQuery
1 2 3 4 5 6 |
$(document).ready(function(){ $("button").click(function(){ $("p").hide(1500); alert("The paragraph is now hidden"); }); }); |