this
is the DOM object, whereas $(this)
is the jQuery wrapper around same.
When using this
, you can call DOM methods on it, but not jQuery methods. When using $(this)
, you can call jQuery methods on it, but not DOM methods.
More Related Contents:
- Difference between $(this) and event.target?
- Controlling the value of ‘this’ in a jQuery event
- jQuery $(this) keyword
- How can I exclude $(this) from a jQuery selector?
- $(this) doesn’t work in a function
- Typescript “this” inside a class method
- jQuery $(this) selector function and limitations
- Jquery Show Tabs [closed]
- Click event doesn’t work on dynamically generated elements [duplicate]
- jQuery doesn’t work after content is loaded via AJAX
- jQuery .val() vs .attr(“value”)
- Get checkbox value in jQuery
- jQuery Deferred – waiting for multiple AJAX requests to finish [duplicate]
- Should jQuery’s $(form).submit(); not trigger onSubmit within the form tag?
- Hide/Show Column in a HTML Table
- jQuery .load() not working in Chrome
- .autocomplete is not a function Error
- Deprecation of success Parameter in jQuery.ajax?
- jQuery disable scroll when mouse over an absolute div
- how to add a day to a date using jquery datepicker
- How to get the id of the element clicked using jQuery
- Close jQuery UI Dialog from Iframe
- Highlight search terms (select only leaf nodes)
- HTML5 validation before ajax submit
- Updating jQuery Tablesorter plugin after removing a row from DOM
- jQuery html attribute not working in IE
- Adding a jQuery script to the Django admin interface
- How to include JavaScript files by h:outputScript? [duplicate]
- Stop $.ajax on beforeSend
- Loading jQuery into chrome-extension