Prev Demo
jQuery
>
.Slidetoggle() - Toggle Display Element With Sliding Effect
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> </head> <body> <input type="button" id="btnSlideToggle" value="Slide Toggle" /> <div id="divSlideToggle" style="height: 50px; width: 50px; background: brown; left: 0px; position: absolute; display: none;"> </div> <script> $("#btnSlideToggle").click(function () { $("#divSlideToggle").slideToggle(); // $("#divSlideToggle").slideToggle("slow", QueueIt); }); </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output