TutorialKart
index.html
►
Run
Reset
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("#fadeinBtn").click(function(){ $("#div1").fadeIn("slow"); $("#div2").fadeIn("fast"); }); }); </script> </head> <body> <p>Basic fadeIn() example.</p> <button id="fadeinBtn">Click to fade in</button><br><br> <div id="div1" style="width:100%;height:80px;display:none;background-color:yellow;text-align:center;"> <a style="line-height:80px;">Learn jQuery fadeIn slow</a> </div><br> <div id="div2" style="width:100%;height:80px;display:none;background-color:yellow;text-align:center;"> <a style="line-height:80px;">Learn jQuery fadeIn fast</a> </div> </body> </html>