Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6588327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:02:04+00:00 2026-05-25T17:02:04+00:00

Possible Duplicate: jQuery $(this) vs this I’m new to this and trying to get

  • 0

Possible Duplicate:
jQuery $(this) vs this

I’m new to this and trying to get my concept right. There has been many instances of the use of “this” and “$(this)“. Can someone please explain the difference and in what condition that we use the two different “this”?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:02:04+00:00Added an answer on May 25, 2026 at 5:02 pm

    In jQuery functions, this most often refers to the actual DOM element you’re dealing with, whereas $(this) returns a jQuery object that wraps the element.

    In JavaScript, this always refers to the current scope. Many of jQuery’s functions will set that scope to be the element you’re working with.

    For instance

    $("#someElement").click(function() {
        this;    // the element itself
        $(this); // a jQuery wrapper-object around the element
    });
    

    The point is, that the jQuery object has all the jQuery functions (like .detatch() or .prependTo() etc.), while the DOM element is what the browser provides. In the example above, the element would be exactly the same as what you’d get, if you called document.getElementById("someElement")

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How to get nth jQuery element I have this simple code: <ul>
Possible Duplicate: jQuery $(this) vs this In jquery sometimes I find that within a
Possible Duplicate: how does jquery chaining work? This is a normal thing you would
Possible Duplicate: Jquery Tabs- Load Contents only when clicked Hi, I am relatively new
Possible Duplicate: Why doesn't this closure have access to the 'this' keyword? - jQuery
Possible Duplicate: How to select an element by class inside “this” in Jquery I'm
Possible Duplicate: jQuery .load method not firing on IE9 In IE7 and IE8 this
Possible Duplicate: jQuery Ajax always returns “undefined”? I'm trying to come up with a
Possible Duplicate: Can someone Explain this jQuery code? I have posted this before, but
Possible Duplicate: What does jQuery.fn mean? I have some script on a page trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.