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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:45:05+00:00 2026-06-14T12:45:05+00:00

on my project, the toggle function toggles multiple times. I think it’s because of

  • 0

on my project, the toggle function toggles multiple times. I think it’s because of an absolute positioned div which should fade in an out. I can’t solve that…

Here the jQuery-Code:

var $j = jQuery.noConflict();

$j(document).ready(function(){
$j('.grit_1_3_1').hover(
    function(){$j('.grit_1_3_1_hover').fadeIn()}, 
    function(){$j('.grit_1_3_1_hover').fadeOut()}
);
}); 

Here the css for the divs:

.grit_1_3_1 {
color: #ffffff;
width: 33%;
float: left;
background: #bdbdbd;
vertical-align: center;
text-align: center;
height: 296px;
margin-bottom: 30px;
}
.grit_1_3_1_hover {
    color: #ffffff;
    position: absolute;
    width: 296px;
    display: none;

    float: left;
    background: #bdbdbd;
    vertical-align: center;
    text-align: center;
    height: 296px;
    margin-bottom: 30px;
}

The first of the 3 teaser should toggle, but doesn’t stop!

Thanks for your help!

Best regards

  • 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-14T12:45:07+00:00Added an answer on June 14, 2026 at 12:45 pm
    $j(document).ready(function() {
        $j('.grit_1_3_1').hover(function() {
            $j('.grit_1_3_1_hover').stop.fadeTo(1);
        }, function() {
            $j('.grit_1_3_1_hover').stop().fadeTo(0);
        });
    });​
    

    Edit,

    Actually, your HTML/CSS as also incorrect when the mouse is over .grit_1_3_1, .grit_1_3_1_hover completely overlaps .grit_1_3_1. Thus, that means the mouse is now out of .grit_1_3_1 and it fade back out.

    Instead of showing/hiding grit_1_3_1_hover I recommend you create 2 divs at the child level grit_content and grit_content_hover then modify your code to

    $j(document).ready(function() {
        $j('.grit_1_3_1').hover(function() {
            $j('.grit_content_hover', $(this)).stop.fadeTo(1);
        }, function() {
            $j('.grit_content_hover', $(this)).stop.fadeTo(0);
        });
    });​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make the code below reusable. I need multiple toggle buttons in
I am building a project that has multiple panels, triggered by one of three
I just started on my first JavaScript project which is a small script to
I CANNOT use jQuery on this project (client policy). My html code is: <div
I'm using jQuery to extend a div to show more information (which is in
I have a ASP.NET MVC project with a large list of input textboxes which
I just dropped in a toggle switch into my Windows Phone 7 project and
I am trying to toggle text when I click to expand/collapse a div. I
Project: I am having a button that toggles the column length from 3 to
I have multiple html documents that share one css stylesheet (not multiple page div

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.