A
A
Alexander2021-06-17 12:27:27
css
Alexander, 2021-06-17 12:27:27

Hover and link on a mobile device. Why does hover not work and the link is followed immediately?

What am I trying to do?
Multilevel menu. You can click on any item and follow the link, when you hover it is shown under the category.
On the mobile version, when touched, the link works out, Subcategories are not shown. Why ?
I also want to make sure that there is no link on the mobile, but just a menu. An example of a site with a menu as I want to do:

a photo
NUkjfqN.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SotickYoker, 2021-06-17
@SotickYoker

TAM describes the event that will occur when clicked.
In the mobile version, you will also need to do
let el = document.querySelectorAll(".menu-a")
el.forEach((e)=>{
e.addEventListener(""click",()=>{
And then what happens when you click on "e"
})
})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question