Dropdown menu remains unable to open

One of the dropdown menus on my website is not retracting back properly, but only on the contact page where a Google map is displayed. The issue looks like this:

I've tried tweaking the CSS code without success. What could I be missing? Should I provide more information?

Here's the HTML code snippet in question:

<nav id=\"topmenu\" class=\"clearfix\">            
  <ul class=\"dropdown\">    
    <li class=\"menu-level-0 current-menu-ancestor\">
      <a href=\"index.php\"><span>Home</span></a>
    </li>     
    <li class=\"menu-level-0 current-menu-ancestor\">
      <a href=\"aboutus.php\"><span>About Us</span></a>
    </li>                       
    <li class=\"menu-level-0 current-menu-ancestor\">
      <a href=\"parts.php\"><span>Auto Parts</span></a>
    </li>  
    <!-- More menu items here -->
  </ul> 
</nav>    

The problematic dropdown menu is located under submenu-1.

Link to the CSS file: http://pastebin.com/1g74fqW1

Snippet from the contact page's HTML code:

<div class="body_wrap">
  <div id="map-canvas"></div>      
  <div id="menuu">
     <!-- Form and button elements here -->
  </div>
</div>

CSS styling for the contact page components:

#menuu {
    position: absolute;
    background-color: transparent;
    top: 100px;
    left: 10px;
    z-index:99;
}

#map-canvas {
   height: 600px;
}

View the live contact page here:

Answer №1

It seems like there is a duplication of jQuery loading on this page:

  • Version 1.8.3 is loaded from js/libs/jquery.min.js, located in the <head>
  • Version 1.11.0 is fetched from http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js, immediately following the google maps api inclusion
  • Additionally, version 1.4.2 is obtained from , right after the <script> block labeled “The following example creates a marker in Stockholm”.

The use of the jquery easing plugin results in an error when the menu appears, displaying “

TypeError: jQuery.easing[jQuery.easing.def] is not a function
”, which could be causing issues with hiding the menu correctly.

One of the redundant jquery versions (particularly 1.4.2) might be incompatible with the easing plugin. It may be beneficial to remove it and test again!

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

Material Design Forms in Angular: A Winning Combination

I'm currently working on developing a form using Angular Material. This form allows the user to update their personal information through input fields. I am utilizing "mat-form-field" components for this purpose. However, there are certain fields tha ...

Having trouble aligning image and expanding video to fit the screen in a NextJS application

I need help with: centering the image above the waitlist sign up scaling the background video in a relative way to fill the screen regardless of browser size This is the relevant part of index.js: import Head from 'next/head' import Image from ...

Arranging th tags level and at equal height within a datable using HTML and CSS

I am looking to arrange my top headers in a table so that the red square icon is always next to the first span without using absolute positioning. Is there a way to achieve this without using absolute position? table.dataTable thead span.sort-icon { ...

"Enhancing the aesthetics: Stylish blue borders around Bootstrap

After successfully setting up bootstrap-select, I have noticed that blue borders are showing in two specific instances: 1) within the dropdown menu 2) when a new value is selected I have made some adjustments but the issue persists. Can someone please p ...

Learn how to create a logarithmic scale graph using CanvasJS by fetching data from an AJAX call

window.onload = function() { var dataPoints = []; // fetching the json data from api via AJAX call. var X = []; var Y = []; var data = []; function loadJSON(callback) { var xobj = new XMLHttpRequest(); xobj.overrideMimeType("applicatio ...

Importing CSS and JavaScript files into a JSP page in Spring MVC

After adding a CSS file to my JSP file, I encountered an issue that prompted me to search for solutions. Despite trying the tutorial from the following link, it did not work for me: My project was created using Spring Tool Suite and here is my file struct ...

Use a foreach loop to iterate over an array of dates and display them in individual tables

I am currently working on structuring my foreach loop to iterate through all the dates in my time stamp arrays. The goal is to display the results in 5 separate tables, each pertaining to one of the dates. Below is the function I've implemented to re ...

Resizing Your WordPress Header Logo

Hi there! I am struggling to resize the logo in the header of my website www.cookingvinyls.com. Despite my efforts, I can't seem to override the hardcoded version. I attempted to modify the width and height lines in header.php, but unfortunately, it ...

Enhance your table with custom styling by incorporating the seanmacisaac table and placing the tbody within a div

I am looking to make adjustments to a Jquery sortable, searchable table created by seanmacisaac. For more information, visit the link: Does anyone know how to set the height of the tbody to a fixed value while allowing vertical scrolling (overflow-y)? & ...

Embracing this web design framework with Rails

Hey there, I am currently trying to integrate a free CSS/HTML/JavaScript template into my Rails project. You can download the template from here. The template consists of an index page, a single CSS file, and two JavaScript files. To implement this templa ...

What's the CSS equivalent of Java's window.pack() method?

I'm relatively new to css and I'm attempting to create a border around a <div>. My goal is for the border to be limited to the size of the elements inside the div and adjust dynamically in proportion to any new objects that may appear or di ...

Resource loading error: The server returned a 404 (Not Found) status code, as shown in the console

Click here I have a simple file structure where index.html, script.js, and login.js are all in the same root folder without any subfolders. The issue I'm facing is that although the connection to the database works fine, there seems to be a problem wi ...

Microsoft Edge and Google Fonts display strong and distinctive lettering

When using Microsoft Edge on Windows 10, all text appears with bold UTF-8 characters: https://i.sstatic.net/JfN0S.png I'm unsure of what the issue is. Is there a solution available? ...

An issue arises when trying to loop using a while loop within an HTML structure

I have a small project with a predefined format, where I need to select a value from a dropdown menu and use that value to fetch data from a database and display it in HTML. While I am able to retrieve the data from the database based on the selected value ...

What is the best way to convert JavaScript to JSON in Python programming?

I encountered a situation where I have an HTML page that contains a lengthy product list, making it too large for me to upload. The products are stored within the script section of the page, specifically in one variable. Initially, I mistook this data for ...

What could be causing my buttons to not line up properly?

My buttons are refusing to line up horizontally for some unknown reason. I can't figure out what the issue is. They are all set to display as inline-block elements. The first image shows a website with the correctly aligned buttons, while the second o ...

Display button in Django template based on user's group level

In my application, there are 3 groups with different permissions: viewer, editor, and creator. I need to display the appropriate buttons based on these permissions. For viewers, they can only see lists and details. Editors have viewer permissions plus th ...

Troubleshooting: Magento checkout page keeps scrolling to the top

We are experiencing an issue where, during the one page checkout process, the next step is not automatically scrolling to the top of the page when it loads. After a user fills out all their billing information and clicks continue, the next step appears ha ...

PHP Loop creating additional space in recurring section

I'm facing a perplexing issue that I can't seem to figure out. When I use the code provided below, it creates an extra blank row on my webpage. Interestingly, this code works perfectly fine on other pages without any issues. Although I have set t ...

"Enhance your website with a Bootstrap container for sharing

I'm currently working on an app that creates a URL that needs to be shared. I'm looking for the perfect container to use with bootstrap 4 to display this generated URL. My goal is to have it resemble the functionality of a Google Drive shareable ...