Stop() Method in jQuery:

If you want to stop any effect or animation before it fully loaded or finished at this time you can use stop() method to stop them.

The jQuery stop() method works for all jQuery effects like sliding, fading.

Syntax:

          $(selector).stop(stopAll, goToEnd);

In above syntax we passed two parameters in it. Both parameters are optional means if you don’t want to specify it the function will also work.

  • stopAll: Default value is false and if you assign it true than it will stop only the active animation or effect
  • goToEnd: Default value is false and if you assign it true than it specifies where or not to complete current animation or effect

Example:

 

4 responses to “Stop Method in jQuery”

  1. Oscar Almeida says:

    Wow, marvelous blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your website is wonderful, let alone the content!

  2. Erlinda Isaacsen says:

    Having read this I believed it was extremely enlightening. I appreciate you taking the time and energy to put this article together. I once again find myself spending a significant amount of time both reading and posting comments. But so what, it was still worth it!

  3. Traci Werries says:

    You’ve made some good points there. I checked on the net to find out more about the issue and found most individuals will go along with your views on this site.

  4. Kent Nolau says:

    thanks to the author for taking his time on this one.

Leave a Reply

Your email address will not be published. Required fields are marked *