How to use jQuery hide() and show()

You can hide and show HTML elements with the hide() and show() With jQuery methods:

Syntax:

$(selector).hide(speed,callback);

$(selector).show(speed,callback);

Example:

$("#hide").click(function(){
  $("p").hide();
});

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

 

 

Tags : jQuery

Related Post