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 724763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:15:37+00:00 2026-05-14T06:15:37+00:00

At DevDays in SF last year (before jQuery 1.4 was released), I thought they

  • 0

At DevDays in SF last year (before jQuery 1.4 was released), I thought they mentioned an upcoming feature in 1.4 that would allow you to reference the current jQuery object while in a chain. I’ve read through all of the 1.4 improvements and wasn’t able to find it. Does anyone know how this can be done?

Example

Being able to access the current jQuery object would be helpful when working with methods that are in relation to the current object like .next():

// Current way
var items = $(this).closest('tr');
items = items.add(items.next(':not([id])'));

// Magical 1.4 way? Is there a "chain"-like object?
var items = $(this).closest('tr')
    .add(chain.next(':not([id])'));
  • 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-14T06:15:38+00:00Added an answer on May 14, 2026 at 6:15 am

    I think this is the closest available, using .andSelf():

    var items = $(this).closest('tr').next(':not([id])').andSelf();
    

    This goes to the .next() call, but then adds the tr back to it. Everything is in the context of where the chain occurs, so either jumping around to add elements, or storing the original reference as you have it is as close as is currently available. These are the helpful functions for jumping around: http://api.jquery.com/category/traversing/miscellaneous-traversal/

    John Resig posted this concept a while back, but to my knowledge, nothing closer to that has made it into jQuery core. You can however use the code posted on the blog there if you want.

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

Sidebar

Related Questions

I have a program (specifically my entry for the SO DevDays Countdown app challenge
Since the presentation by Eero Bragge at the Amterdam devdays about QT / QT-Creator
I have a c++ server side project that I need to embed some sort
Jon Skeet spoke of the complexity of programming dates and times at the 2009
After becoming more engaged with training new engineers as well as reading Jon Skeet's
I saw Michael Sparks's very interesting dissection of Peter Norvig's Spell Checker at the
I was at the StackOverflow Dev Days convention yesterday, and one of the speakers
I have an ADO.NET Entity Data Model and want to plumb up a DataGridView

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.