+ 4

Difference between "this" and "$(this)"?

"this" refer to the current object of jQuery, but I also see sometimes it is used inside $(), why and what the difference?

9th May 2017, 12:56 PM
Marianna Milovanova
Marianna Milovanova - avatar
3 Réponses
+ 9
$(this) select the global window object generally or the object in the context when script runs.
9th May 2017, 1:20 PM
Apel Mahmod
Apel Mahmod - avatar
+ 4
Privyet , 😊
14th May 2017, 8:46 AM
Devendra Sanghavi
Devendra Sanghavi - avatar
+ 3
Я лублю Русски
14th May 2017, 5:01 PM
Devendra Sanghavi
Devendra Sanghavi - avatar