jQuery SlideToggle Milliseconds


jQuery slideToggle milliseconds – If you want to add the slide toggle effect milliseconds means you want to add the slide finish with the milliseconds provided. Below is syntax and example with online demo and editor.


Syntax of jQuery SlideToggle Milliseconds

Here is syntax for slide toggle milliseconds effect

$(selector).slideToggle(speed,callback);

Speed : Speed in milliseconds. Add millisecond you want.

Callback : Callback function is optional. You can add function to be called when it completes the sliding effect.

Example And Demo with full code is given below.

jQuery SlideToggle milliseconds Example


<script type="text/javascript">
         $(document).ready(function(){
          $("#slide").click(function(){
           $("#demoDiv").slideToggle(1000);
          });
          });
</script>    

Try it »

The above code will produce following result-
Note : Its screenshot of the output. To run this demo click on the above Try it button.
jQuery SlideToggle Milliseconds


Advertisements

Add Comment

📖 Read More