As shown in the picture, this is a left menu (I took two pictures). The picture in front indicates the parent menu. Some parent menus contain submenus. Click on the parent menu and it will change color (as shown in the picture) Effect on the right), click on the submenu, the font of the submenu changes color, and the background of the parent menu changes color (the effect on the left side of the picture). Now the menu bar on the left is an extracted public page, and an identifier is added to each menu. When the menu is clicked , jump to the action, call the method, and then display the data on the page. The difficulty is, 1: When clicking the submenu, the parent menu must also be selected. 2: There are many parent nodes that jump to the same action, the same method, but the return page is different, so there is no way to judge even if you add an identifier. Please help me solve it.
Online. . . [img=http://b227.photo.store.qq.com/psb?/V13H6l0L0oFC2O/VdDpnR5EU02v954TJe4ENUhFMi6MoMC5rjRtt9YLKn8!/b/dMmLUIdDGAAA&bo=IAPBAQAAAAADAMY!][/img]
Reply to the discussion (Solution )
For jquery, remove event bubbling and add event.preventDefault();.
$(function(){ $(".select").click(function(event) { event.preventDefault(); alert("我不会向上冒泡了.."); }); });I can’t understand it
Haha... I got the points

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

The article discusses the <iframe> tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

This article explains the HTML5 <time> element for semantic date/time representation. It emphasizes the importance of the datetime attribute for machine readability (ISO 8601 format) alongside human-readable text, boosting accessibilit


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Dreamweaver CS6
Visual web development tools

SublimeText3 Chinese version
Chinese version, very easy to use

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.
