jQuery Mobile Question:

Download Job Interview Questions and Answers PDF

Can you please explain the difference between calling stop(true,true) and finish method?

jQuery Mobile Interview Question
jQuery Mobile Interview Question

Answer:

The .finish() method is similar to .stop(true, true) in that it clears the queue and the current animation jumps to its end value. It differs, however, in that .finish() also causes the CSS property of all queued animations to jump to their end values, as well.

Download jQuery Mobile Interview Questions And Answers PDF

Previous QuestionNext Question
Explain finish method in jQuery?Explain jQuery plugin?