How to use jQuery hide() and show()
jQuery

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();
});

 

 

Get The latest Coding solutions.

Subscribe to the Email Newsletter