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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:12:10+00:00 2026-05-15T19:12:10+00:00

So i want to isolate the element directly below the link clicked so for

  • 0

So i want to isolate the element directly below the link clicked

so for example here is my Jquery and if I click on the link with the class drop all the links on the page that have the class drop_down slidedown. How can i use “this” or anything to isolate only one at a time.

$(document).ready(function(){
    $('.drop').click(function(){
        if($('.drop_down').is(':visible')) {
            $('.drop_down').slideUp();
        } else {
            $('.drop_down').slideDown();
        }
    });
});

<li><a class="drop" href="#">Video Training</a></li>
<li class="drop_down">Click on the links below to get some more information or to buy now <div>&nbsp</div> <a class="button" href="/training_dvds">More Info</a><a class="button" href="/pos_support/aldelo_training_dvd">Buy Now</a></li>                      
  • 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-15T19:12:10+00:00Added an answer on May 15, 2026 at 7:12 pm

    .drop doesn’t have any children except for a text node.

    If you meant that you want to affect the li.drop_down below the link’s parent, then do this:

    $('.drop').click(function(){
        var $next = $(this).parent().next('li.drop_down');
        if($next.is(':visible')) {
            $next.slideUp();
        } else {
            $next.slideDown();
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to isolate all my code from the IoC container library that I
Simple question here -- all I want to do is identify the folders in
I want to download an mp3 File from a Link on the Phone(Isolated Storage)
I’m using TikZ to draw diagrams in LaTeX that I then want to isolate
edit: I'll put a github link here when I am done altering my design
We're using SQLAlchemy declarative base and I have a method that I want isolate
I have a string of characters and want to isolate 2 characters. Isolate a
How to isolate specific hyperlinks from a website(using simple html dom php). for example
I want to be able to isolate only toll free numbers from my dialplan
I want to list all the Stored Procedures which use overloading in a given

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.