Call function after hide effect - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:hide


Call function after hide effect

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<script src=""></script>
        $("p").hide(1000, function(){
            console.log("Hide() method is finished!");
        });//ww w .j av  a 2  s.c om
        $("p").show(1000, function(){
            console.log("Show() method is finished!");

<p>This is a paragraph.</p>

<button class="btn1">Hide</button>
<button class="btn2">Show</button>


Related Tutorials