codeGK
Code it ALL
jQuery fadeToggle() - CodeGK

♦ jQuery fadeToggle()

♣ Example3: jQuery fadeToggle()

HTML element can be toggled between with hidden and shown in smooth transition with fadeToggle() method.
Below is the representation of jQuery fadeToggle() Syntax.
Basic Syntax
$(selector).fadeToggle(speed,callback);
speed: time for fading in or fading out, can be slow,speed or millisecond(s).
callback: funtion calling after fading in or fading out.
In this example, fadeToggle() method is illustrated.
Example
Input:
Output: