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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:01:10+00:00 2026-06-13T15:01:10+00:00

I am using the jQuery hoverIntent plugin to fade in a div when another

  • 0

I am using the jQuery hoverIntent plugin to fade in a div when another div is being hovered over. There are 4 elements that share a class name, and I only want to fade in the children of the element I am hovering over, not every div that shares the class’ children. The problem now is if I hover over one dive it fades in all 4 elements children. Where in my code little bit of code have I gone wrong?

Here’s the html:

<div id="resources" class="faded">

<div class="resourcesHover"></div>

</div>

<div id="forBuilders" class="faded">

<div class="buildersHover"></div>

</div>

<div id="fam" class="faded">

<div class="famHover"></div>

</div>

<div id="homePlans" class="faded">

<div class="plansHover"></div>

</div>

Here’s the jQuery

$(document).ready(function(){

$(".faded").hoverIntent({
    over:    fadeDivIn,
    timeout: 300,
    out:     fadeDivOut
});

function fadeDivIn() {
    var $kids = $('.faded').children();
    $($kids, this).fadeIn('slow');
}

function fadeDivOut() {
    var $kids = $('.faded').children();
    $($kids, this).fadeOut('slow');
}

});

Just in case anyone has a similar issue, I figured out the solution and posted it below.

  • 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-13T15:01:11+00:00Added an answer on June 13, 2026 at 3:01 pm

    Just figured it out. I added a this, to the line that sets the children into a variable, and also removed it from the .fadeIn and .fadeOut lines.

    Here’s the new jQuery:

    $(document).ready(function(){
    
    $(".faded").hoverIntent({
        over:    fadeDivIn,
        timeout: 300,
        out:     fadeDivOut
    });
    
    function fadeDivIn() {  
        var $kids = $(this,'.faded').children();
        $($kids).fadeIn('slow');
    }
    
    function fadeDivOut() {
        var $kids = $(this,'.faded').children();
        $($kids).fadeOut('slow');
    }
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using jQuery hoverIntent plugin like this: $('#box').hoverIntent({ over:function_a, out:function_b, interval:0 }); However
I'm using the jQuery plugin hoverIntent to expand/shorten a div which has a form
Using jquery, how can I find the first div that contains an input with
I'm using the hoverIntent jQuery plugin in place of jQuery's hover() method. I want
I have a button that when hovered over (mouseover) displays a div right below
Using jquery to validate that there is text in a text box. When I
Using jQuery I'm programmatically generating a bunch of div 's like this: <div class=mydivclass
I'm using the hoverIntent Jquery plugin and I have a question regarding callback functions.
Using jQuery version 1.4.2 and Validation plugin version 1.8.1 I have a textbox that
using jquery's .post i send do my php code an object that with var_dump

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.