home / software / tips and tricks / Chapter 9- jQuery Hide and Show

Chapter 9- jQuery Hide and Show

Updated:  06/17/2013 17:06 PM
Author:  Shiju Mathews

Status:    Resolved.


Chapter 9- jQuery Hide and Show
<<   Previous ChapterChaper 9Next Chapter >>
 
jQuery hide() and show()
  This method will hide and show the html elemets.

Syntax:

$(selector).hide();
$(selector).show();



jQuery hide() and show() with time delay and callback

Syntax:
   $(selector).hide(speed,callback);
   $(selector).show(speed,callback);

Optional Parameters:
    speed : Represents the time delay for hide or show. Acceptable values are slow, fast or integer value(Time in milliseconds).
    callback: A callback function is executed after the current effect is finished.
Tags: Chapter 9- jQuery Hide and Show
Updated on: December 2024