Home »
MCQs »
jQuery MCQs
What is the correct syntax of animate() method?
52. What is the correct syntax of animate() method?
- $(selector).animate({params},speed,callback);
- $(#selector).animate({params},speed,callback);
- $(selector).animate(speed,callback);
- $(selector).animate({speed,callback,params});
Answer: A) $(selector).animate({params},speed,callback);
Explanation:
The correct syntax of animate() method is:
$(selector).animate({params},speed,callback);