Hide, show & toggel jquery

Hide, show & toggel jquery

A. Hide

$("button").click(function(){
$("p").hide(1000); // 1 second takes time for hide
});

B. Show

$("button").click(function(){
$("p").show(1000);
});

C. Toggle

$("button").click(function(){
$("p").toggle(1000);
});

Leave a Reply