♦ 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, .callback: function call after the completion of toggling.
Example
Input:
Output: