Tuesday, December 6, 2016

JavaScript - jQuery - 'this' keyword - Scope - Q&A

Question:

What is the difference between this and $(this) when used in the following bound function?

Answer

Using $(this), you are just passing the this in $() as a parameter so that you could call jQuery methods and functions.


No comments:

Post a Comment