adspace
What is difference between $(this) and ‘this’ in jquery?
Answer Posted / Santosh Pankholi
In jQuery, $(this) refers to the current element in the context of a DOM event or method. It wraps the current HTML element in a jQuery object. On the other hand, 'this' without the dollar sign refers to the global object (in most cases, the window object), unless it is used inside an object literal, function, or jQuery object where it refers to the specific object or function.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you install/use jquery in a project. What is the minimum setup needed to start using jquery.
How to always reference latest version of jquery?
What is the minimum setup needed to start using jquery.
How can jquery library be added to pages?
How to validate email using jquery?
Do you have plans for a new jquery plug-in or something else we should look out for? Where to from here for the imgpreview plugin?