Friday, February 21, 2014

hide() and show() in jQuery

show()

HTML element can hidden using the show() method.
The optional speed parameter takes three values as in hide() methods:
"slow", "fast" and "milliseconds".

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

Example:
$("button").click(function(){
$("h1").show(1000);
});

No comments:

Post a Comment