Top-Bar Foundation Glitch with Dropdown Feature

There seems to be an issue with the top-bar on my website. Specifically, I am facing a problem where clicking on a certain link changes the size of the top bar by adding style="height:180" and adding not-click moved to the li below. Additionally, when the link is clicked, it also removes ::after from the link. This unexpected behavior is causing disruptions to the functionality of the website and I am struggling to understand the root cause of this issue.

<li class="has-dropdown">
    <a href="javascript:void(0)">Description</a>
    <ul class="dropdown"> 
        <li><a href="filename.php">Description</a></li>
        <li><a href="filename.php">Description</a></li>
        <li><a href="filename.php">Description</a></li>
    </ul>
</li>

Answer №1

Perhaps there is a jQuery event listener in your code that is responsible for adding those attributes to the li element upon clicking.

Another possibility could be the CSS styles associated with the clicked li element, which may be defined in your foundation_and_overrides.scss file or another CSS/SCSS file.

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

Steps to remove a row from a table in a ReactJS component

I'm struggling with implementing a delete operation for table rows and encountering errors. Any assistance in resolving this issue would be greatly appreciated. Since I am unsure how to set an auto-incrementing id, I used Date.now(). Now my goal is t ...

Tips for adjusting the width of <p:panelGrid>

My <p:panelGrid> looks like this: <p:panelGrid style="width: 50px"> <p:row> <p:column colspan="2"> <p:inputTextarea/> </p:column> </p:row> </p:panelGrid> Despite trying t ...

Bokeh is having trouble loading from the CDN

I am currently attempting to embed a plot along with its data by utilizing autoload_static within a straightforward html page that I wish to view locally on my computer. According to the documentation, all I need to do is place the .js file in the specifie ...

transmitting data in the form of an array using

This is the code I am currently using to display the text of the selected option in the post: $("#major_names").change(function () { $.post('find_lesson.php', { dars:$("#major_names option:selected").text() }, function(data){ ...

Guide on connecting with a .asmx web service through a basic HTML page

I've been attempting to integrate an asmx web service into a basic HTML page, but I'm not getting any output. The issue is unclear to me at this point. Below is the AJAX code that I have implemented to call the asmx web service. function Getdet( ...

Determine whether a div that has been generated automatically has been selected by the user

My JSON file contains a list of elements, each creating a container. See the code below: $.getJSON('/data/risks.json', function(data) { var html = ''; $.each(data.risk, function(key, value){ html += '<div class="elementlis ...

Issue with FiFO on MacOs causes skewed borders to not display correctly

I am currently facing an issue with my webpage and would greatly appreciate some help from the community. My goal is to create a skewed border inside a div, similar to the example on this JSFiddle link: https://jsfiddle.net/kx6f9rsd/ .container { backgro ...

An error message reading "TypeError: 'undefined' is not callable" occurs when attempting to apply my custom CSS

I am facing an issue that I cannot seem to debug. Every time I attempt to add my custom CSS file to the header, which is required for the script called onepage-scroll.js, I encounter an error. The script mandates placing the file in the header using <sc ...

Error: Validation issues detected in field functionality

My goal is to loop through a set of text fields and check if the user has input any values. However, I'm facing an issue where even though I have provided values in the text fields, it seems like they are empty. To better illustrate my problem, I have ...

Utilize a function on specific attribute values

I have a function in JavaScript that is designed to convert all relative URLs into absolute URLs. function rel2Abs(_relPath, _base); //_relPath represents the relative path //_base indicates the base URL Now, my objective is to implement this function on ...

Amending the Access-Control-Allow-Origin setting to enable the proper functioning of Jquery's load() function

SITUATION: Our internal web site is hosted on a web server. We also have SharePoint running on a separate internal web server. Both are within the company.com internal domain, with different sub domains accessed via SharePoint.company.com and internalWeb ...

What is the best way to ensure that display block functions properly on mobile devices and outdated versions of Firefox?

I'm experiencing an issue with my HTML menu. It appears correctly on Chrome, the latest Firefox, and IE, but it looks terrible on my iPad and older versions of Firefox. Is there a way to ensure it works consistently across all platforms? HTML: <d ...

Developing a modal window using data from a form in JavaScript

I want to create a new window using the data inputted into a textfield with the id "name". <form name="myForm"> <input type="text" id="name"> </form> <button onclick="openWindow();">Open</button> Here is the javascript code ...

ng-click is not triggering my function

I'm really struggling to understand how AngularJS and Typescript can work together efficiently. My main goal is to make a simple method call, but I seem to be stuck due to some constraints in the architecture I have chosen. I must have made a mistake ...

Eliminate time data from the Google Map

I am looking to customize the appearance of my Google Map routes on my website by removing the time info box. <iframe src="https://www.google.com/maps/embed?pb=!1m46!1m12!1m3!1d204152.56634698433!2d174.4756264675282!3d-36.9170414111374!2m3!1f0!2f0!3f0! ...

Utilizing third party (jQuery) with AngularJS $compile

Currently, I am integrating angularjs into a website that is already using jquery to load content asynchronously. The content is loaded and then appended to the DOM using jQuery instead of AngularJS. Here is an example of what I have: function loadConte ...

Potential Issue with CSS General Sibling Selector

It seems like I have encountered a potential bug with the General Sibling Selector. When I use p ~ div, the selector does not work as expected. However, when I replace p with the specific class name text_paragraph, it works fine. You can view my code and f ...

What are the choices for an ASP.NET page that has consistent client-side and server-side markup?

Imagine if I were creating a StackOverflow replica with webforms ASP.NET and jQuery. The Question page consists of a question, multiple answers, and comments beneath each one. Here are the requirements: Allowing users to post new answers and comments, as ...

Enhance your textbox with more detailed descriptions than just displaying NaN

I am working on a form that includes select boxes. If a user selects an option from "Convert From" and another option from "Convert To" but does not enter a number in the input field, instead of displaying NaN in the result text box, I would like to show ...

Modifying the order of Vuetify CSS in webpack build process

While developing a web app using Vue (3.1.3) and Vuetify (1.3.8), everything appeared to be working fine initially. However, when I proceeded with the production build, I noticed that Vue was somehow changing the order of CSS. The issue specifically revol ...