What is the difference between $(this) and 'this' in jquery?



What is the difference between $(this) and 'this' in jquery?..

Answer / Anurag Vishwakarma

In jQuery, `$(this)` creates a wrapped set containing the DOM element or elements that correspond to the current object. It can be used within event handlers, callbacks, or any other place where you need to reference the current element.nOn the other hand, `this` without the $ sign refers to the global object (in a browser context, it would be the window object).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

Explain various methods to make ajax request in jquery?

1 Answers  


What is jQuery.noConflict?

1 Answers  


Define "beforesend(xhr)" paremeter of jquery ajax method?

1 Answers  


Difference between prop() and attr()? : jQuery Mobile

1 Answers  


What features of jquery, has been used in web applications?

1 Answers  


Define the types of selectors in jquery?

1 Answers  


How can you apply a style on an element using jQuery?

1 Answers  


Can you please explain the difference between prop and attr? : jquery mobile

1 Answers  


How to load a page using jquery mobile? : jquery mobile

1 Answers  


What is jquery selectors? Give some examples.

1 Answers  


Different ways of using $.connect function in jquery?

1 Answers  


How to use connect in jquery?

1 Answers  


Categories