codeGK
Code it ALL
jQuery Toggle - CodeGK

♦ jQuery Toggle

♣ Example3: jQuery Toggle

HTML elements can be toggled between showing and hiding.
Below is the representation of jQuery Toggle Syntax.
Basic Syntax
$("demo").toggle(speed, callback);
speed: defining speed of toggling. Values can be slow,fast or milliseconds.
callback: function call after the completion of toggling.
In this example, .
Example
Input:
Output:
Hide_and_show