0

What is it that $(this) evaluates to if I call it on an onclick event, in jquery?

I'm really wanting a high-level conceptual example, i understand roughly what is going on but not what I should actually expect.

It's extremely possible this is duplicated elsewhere, but SO search didn't return anything for me.

bharal
  • 15,461
  • 36
  • 117
  • 195
  • Possible duplicate of [jQuery: What's the difference between '$(this)' and 'this'?](http://stackoverflow.com/questions/1051782/jquery-whats-the-difference-between-this-and-this) – Mr. Alien Jan 15 '17 at 17:24
  • *but SO search didn't return anything for me* You should use Google Searh – Mr. Alien Jan 15 '17 at 17:24
  • 1
    Simply, this evaluates to event.target with is the target that triggered the event and $(this) wraps it in a jquery object to run jquery functions – Bindrid Jan 15 '17 at 17:27

0 Answers0