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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:40:05+00:00 2026-06-18T07:40:05+00:00

If i hover on first li its coming bt if i hover on 2nd

  • 0

If i hover on first li its coming bt if i hover on 2nd li its coming on first only.
here is the html

<div class="airPortFiltr">
<div class="sameAirport">
<input type="checkbox" />
<label>Depart/Return, same airport</label>
</div>
<h4>Departing From</h4>
<div class="airportdetails">

<ul>
<li><input type="checkbox" /></li>
<li id="valuenw" style="width:132px">LGA - LaGuardia
<a href="#" style="display:none">only</a>
</li>
<li>$ 238</li>
</ul>


</div>
<div class="airportdetails">

<ul>
<li><input type="checkbox" /></li>
<li style="width:132px">LGA - LaGuardia</li>
<a href="#" style="display:none">only</a>
<li>$ 238</li>
</ul>


</div>


</div>

here is the fiddle
http://jsfiddle.net/VRE9n/

here is the js

$(document).ready(function () {
     $(".airportdetails").mouseover(function() {
$(".airportdetails li a").show();
}).mouseout(function(){
$(".airportdetails li a").hide();
});

    })
  • 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-06-18T07:40:07+00:00Added an answer on June 18, 2026 at 7:40 am

    Just use $("li a", this).show(); instead of $(".airportdetails li a").show();.

    this is the div.airportdetails element which lies bellow your mouse cursor.

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

Sidebar

Related Questions

i need to get the closest class html from my list, but its always
I have a html structure like this: <div class=one> <div id=two> <h2>Any</h2> <h4>Any</h4> </div>
I'm trying to use slideToggle() on multiple div hover's, showing another div in its
I have this navigation <div class=cookieBar> <div class=light first> <a href=# class=ckLnk>Home</a> </div> <div
This is my first post here and I'm by no means a skilled HTML/CSS/JavaScript
This works, but when I hover the first time, nothing loads. When I mouse
On hover I want my div to scroll down. I know i can use
when i hover on div#new-menu-lower ul.menuul li.menuli i want to add display block to
Ok guys, noob here, writing my first joomla module (or trying to anyway!). Gotten
This is probably an easy fix, but I'm stumped. Here's the URL: http://urgent.mchenry.edu First

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.