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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:42:26+00:00 2026-05-17T06:42:26+00:00

having read through how to use nextall() i’m still a little stumped with the

  • 0

having read through how to use nextall() i’m still a little stumped with the following: I have a loop that will be outputting the following code.

<div id="placement" style="float:right"> 
    <a class="eng-sum"><img src="/flags/en.png"></a>
</div>

<div class="tool-summary" id="tool-summary" style="clear:both; display:none">
    blar blar
</div>

I looking to click on uk flag and display the next div.tool-summary

Here is the jquery script I’m using:

$('.eng-sum').click(function() {   

   $(this).nextAll(".tool-summary:first").slideToggle();

});

This script only works if I wrap the .tool-summary div within the #placement div which is undesirable – I thought that the nextall() function would take care of this, but it seems not to?

  • 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-17T06:42:27+00:00Added an answer on May 17, 2026 at 6:42 am

    nextAll finds siblings only. That is to say, it only looks at elements within the same parent element.

    You might want to look at using

    $(this).parent().nextAll(".tool-summary:first").slideToggle();
    

    This searches among siblings of the #placement div.

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

Sidebar

Related Questions

Having read around it appears this should be possible. I have the following content
I read that I can use Python's Format Specification Mini-Language to have more control
I have a C++ program that will read in data from a binary file
Having read other people's questions I thought window.onload=... would answer my question. I have
I recall having read somewhere that it is better (in terms of performance) to
I have a dotnet process that through calls to an unmanaged dll is communicating
I have searched the web and read through the Boost documentation about shared_ptr .
I read through the Zend Controller doco and it says that it can do
I was just having a quick read through this article (specifically the bit about
I'm using joomla and i have read through the API and I noticed the

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.