jQuery slideToggle()jQuery slideToggle () method is used to toggle between slideUp() and slideDown() method. If the element is slide down, it will slide up the element and if it is slide up, it will slide down. Syntax: speed: It specifies the speed of the delay. Its possible vales are slow, fast and milliseconds. easing: It specifies the easing function to be used for transition. callback: It is also an optional parameter. It specifies the function to be called after completion of slideToggle() effect. Let's take an example to demonstrate jQuery slideToggle() effect. Test it NowOutput: Click to slide toggle panel Hello javatpoint.com! It is the best tutorial website to learn jQuery and other languages. Next TopicjQuery animate() |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India