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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:20:52+00:00 2026-06-15T01:20:52+00:00

When you hover over one <div> , I want an <a> on a separate

  • 0

When you hover over one <div>, I want an <a> on a separate part of the page to be “hovered” on also.

<div class="initiator">
</div>
<div>
   <a class="receiver href="#">Touch the div and I get hovered!</a>
</div>

I’ve tried this jQuery, but it doesn’t trigger the <a>‘s hover CSS.

$(".initiator").hover(function(){
   $(".receiver").hover();
   console.log("div was hovered");
});
  • 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-15T01:20:54+00:00Added an answer on June 15, 2026 at 1:20 am

    Try this:

    $('.initiator').on('mouseenter mouseleave', function(e) {
        $('.receiver').trigger(e.type);
    })
    

    It will apply the same triggers for the receiver as the initiator receives for both mouseenter and mouseleave. Note that:

    .hover(over, out) 
    

    is just a high-level variant of:

    .on('mouseenter', over).on('mouseleave', out)
    

    so using that information you can be more precise when binding and triggering mouse events.

    As noted in the comment, you can also use:

    $('.initiator').hover(function(e) {
        $('.receiver').trigger(e.type);
    })
    

    There are lots more to read here: http://api.jquery.com/hover/

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

Sidebar

Related Questions

I want to change the background color of the page when one hovers over
I want to add a class to a list item when I hover over
Basically I want visible: to fire up only on the div i hover over,
I have a <div> full of <ul> elements. When i hover over one of
I want to show hidden div on hover of <div class=thumb> and i have
how can I give an alert when one div hovers over another div upon
I have an effect that when you hover over this one particular area, it
I want to hover over a table element, and display a popup box in
I have a menu and when I hover one of the links a div
I'm having some problem with ccs3 hover transition over a nested div element. It

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.