Using jQuery, you can show or hide HTML elements by using the show() and hide() methods:
Syntax for hide() and show():
$(selector).hide(speed,callback);
$(selector).show(speed,callback);
The parameter speed is optional and it specifies a specific speed hiding or showing. Speed can have the values “slowâ€Â,"fast", or it can be milliseconds.
The parameter callback is also optional and it is the name of a specific function that you want to execute after hide or show completes.
Example
$("#hide").click(function(){
$("p").hide(5000);
});
Example of using the show() method
$("#show this").click(function(){
$("p").show(5000);
});
Hide and Show jQuery methods
Using jQuery, you can show or hide HTML elements by using the show() and hide() methods:
Syntax for...
hide jquery methods show
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users