$(document).ready(function(){ $("button").click(function(){ //First paragraph hide slowly $("p").hide("slow", function(){ //alert display after paragraph is hide alert("The paragraph is now hidden"); }); });