The navigation menu created with jQuery is experiencing issues in IE7, specifically with the fading in and out animation functionalities

(function () {
    var $make = $('li.prod');
    $('div.models').addClass('hide');
    $make.on('mouseenter', function () {
        var $this = $(this);
        $this.next().fadeIn(150);
    });
    $make.on('mouseleave', function () {
        var $that = $(this);
        $that.next().fadeOut(150);
    });
})();

Check out my JSFiddle. I'm having trouble getting my code to function properly in IE7. Any suggestions on how to make the submenu open when hovering over it would be greatly appreciated. I'm still learning jQuery and any help is welcome.

Answer №1

By placing the <div> containing submenus inside the <li>, the parent item will stay open when hovering over the submenu items.

SEE DEMO: http://jsfiddle.net/hwEdV/12/

UPDATE: Unfortunately, Jsfiddle is experiencing script errors on IE7-8, preventing me from testing it on those browsers.

Answer №2

Upon reviewing your script, I noticed that everything looks good except for the fact that `.next()` is not compatible with IE7.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What steps should be taken to modify an image following retrieval of data from the database?

When using the function getDataFromDb(), I am trying to retrieve the latest data from the database. Specifically, I want to use val["id"] as a condition to determine which image to display in the function GetImage. However, my attempts have not been succ ...

How to locate the first element of a specific class using a distinctive ID in jQuery

I have a collection of elements that looks like this: <article id="post-647" class="brand-search-result brand-alaffia hidden"></article> <article id="post-647" class="brand-search-result brand-alaffia hidden"></article> <article ...

Get a URL from the JSON data returned by the Wikipedia API

How can I retrieve the image URL from a JSON response and store it in a variable? I found helpful information on the MediaWiki API help page Following this example to extract image information from a page: https://commons.wikimedia.org/w/api.php?action= ...

jQuery tooltips experiencing lag or duplication when closing on adjacent elements

My tool tips are not disappearing correctly, specifically in IE where they lag after you move to the next element. Using jQuery: $(document).ready(function() { loadMap(x, y,z); $(document).tooltip({ at: 'center top', my: ...

Utilizing JQuery Ajax in Synchrony with UI Dialogs

I am struggling with creating an ajax pop up when a button is clicked in the order include of my main smarty template. Despite including jquery, jquery ui, and the necessary js file script, the page just reloads instead of displaying the pop-up as intended ...

Error found in event.PreventDefault()

I'm currently implementing Twitter Bootstrap on my application. I added e.preventDefault for the link button within $(document).ready(), but it doesn't seem to be functioning properly. Below is the code snippet: Master page: <a id="lnkLogou ...

Using JQuery to search for and remove the id number that has been clicked from a specific value

I am in need of assistance with deleting the clicked id number from an input value using jQuery. I am unsure of how to proceed with this task and would appreciate some guidance. To simplify my request, let me explain what I am trying to accomplish. Take ...

Switch to a different element by rolling over one

I need assistance with a menu setup where the submenus are located in separate divs on the page. Both the parent elements and submenus have numerical identifying IDs, and I am struggling to create a rollover effect that would automatically open the corresp ...

Guide on toggling the display of a div in JQuery

Hi everyone! I'm trying to figure out how to close a div that is open with the show() function. For example, I have a "div a" containing a hidden "div b". When I click on "div a", "div b" should appear. However, when I click on an [x] inside "div b", ...

Tips for avoiding automatic updates to .js scripts after pressing F5

Is there a method to stop a JavaScript script from resetting when the user refreshes the page? For instance, if I have a picture slider that is constantly changing images, I would like the script to continue where it left off instead of starting over wit ...

Is there a way in jqGrid to invoke a function once the subGridRowCollapsed operation finishes?

I'm currently working with jqGrid's subgrids and I need a solution for invoking a specific method after collapsing a subgrid. Currently, my implementation is as follows: subGridRowCollapsed: function (subgrid_id, row_id) { adjust_slider_posi ...

What is the best way to save variables to a file in opencart?

I'm encountering an issue with posting variables in opencart. My goal is to retrieve two variables from text fields on the checkout/login page, labeled as name and address. I intend for the values inputted into these fields to be saved upon clicking t ...

Unlocking the Power of Transition: Effortlessly Submitting a Form Post

After the modal finishes fading out, I want my form to be submitted and sent to the email file "refreshform.php". However, currently after the modal fades out, the form does not submit or post anything to the PHP file for sending the email. It simply fades ...

Skipping validation while navigating back on SmartWizardIf you need to bypass validation during backward

Looking for assistance with Jquery smartwizard? Check out the link. I want to disable validation when a user clicks on the "Previous" button in any step, except for the first step where the Previous button is disabled by default. Below is my JavaScript co ...

What is the best way to make an element disappear 5 seconds after the mouse has stopped hovering

#section1 { display: block; } #section2 { display: none; } #container:hover > #section2 { display: block; } <div id="container"> <div id="section1">Section1</div> <div id="section2">Section2</div> </div> ...

Load the page before the images are displayed

Currently, I am utilzing Ruby threads with PhantomJS to convert multiple URLs into images. The issue is that the page only loads once all of the images have been generated. My goal is to implement a loading animation while the images are being created an ...

Ways to execute a function when a button is clicked with a shared variable?

When creating buttons in HTML to control video speed, I encountered a strange issue. After successfully implementing the buttons for one video, they only worked on a second video and had no impact on the first one. Deleting the second video seemed to resol ...

There seems to be a problem with the responsive navigation menu when activated in responsive mode and then resizing the screen

Trying to create a responsive navigation but encountering issues when following these steps: 1. Resize the navigation to less than 940px 2. Activate the menu 3. Resize the browser again to more than 940px 4. The menu is no longer inline and appears messy ...

How about incorporating AJAX into your HTML code?

I am currently in the process of developing an email system for a company that wishes to use it for sending emails. To achieve this, I have implemented a custom HTML editor for creating email content. My goal is to post the email contents to an external PH ...

Issues with the animation of the navbar menu button are preventing it from functioning

I have been attempting to incorporate animation when the navbar-button is toggled on smaller screen sizes. Inspired by the design of .navbar-toggle.larr in this particular template, I tried to implement a similar effect. /* ANIMATED LEFT ARROW */ .navbar- ...