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

  • Home
  • SEARCH
  • 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 6125679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:16:32+00:00 2026-05-23T16:16:32+00:00

Assuming I have this: var wrap = $(#someId); I need to access the original

  • 0

Assuming I have this:

var wrap = $("#someId");

I need to access the original object that I would get by

var orig = document.getElementById("someId");

But I don’t want to do a document.getElementById.

Is there something I can use on wrap to get it? something like:

var orig = wrap.original();

I searched high and low but I didn’t find anything; or maybe I’m not looking for the right thing.

  • 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-23T16:16:33+00:00Added an answer on May 23, 2026 at 4:16 pm

    The function for this is get. You can pass an index to get to access the element at that index, so wrap.get(0) gets the first element (note that the index is 0-based, like an array). You can also use a negative index, so wrap.get(-2) gets the last-but-one element in the selection.

    wrap.get(0);  // get the first element
    wrap.get(1);  // get the second element
    wrap.get(6);  // get the seventh element
    wrap.get(-1); // get the last element
    wrap.get(-4); // get the element four from the end
    

    You can also use array-like syntax to access elements, e.g. wrap[0]. However, you can only use positive indexes for this.

    wrap[0];      // get the first element
    wrap[1];      // get the second element
    wrap[6];      // get the seventh element
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say that I have a object that looks like this var object =
Hej, assuming I have a code that looks like this: List<User> userList = GetUserByName
Assuming I have a simple structure that looks like this: public class Range {
Assuming I have this code: function question($argument) { var $q = What does ($argument)
This is likely a novice question about LINQ, but assuming I have a set
I have the following code: $('.getcode').click(function () { $('textarea').val(); var str = []; $('#group-wrap
I can't really understand this concept. Assuming i have this interface: public interface IValidate
Assuming you have a DOM tree with nested tags, I would like to clean
In javascript suppose you have this piece of code: <div> <script type=text/javascript>var output =
I have query in link to SQL like this var password = (from userAccounts

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.