@@Henry
Es gibt ja das toogleevent für das <details> Element. […] Jetzt interessiert mich daran, wo es sich vom clickevent unterscheidet.
-
Das
toggle
-Event feuert auch, wenn dasdetails
-Element per Script geöffnet/geschlossen wird. Siehe Codepen. -
click
feuert, wenn man bei geöffnetendetails
hineinclickt, aber nicht auf diesummary
– da wird nicht geschlossen.
Genauer gesagt, hatte ich gehofft, dass wenn Details geöffnet ist -> tue dies oder das, wenn danach wieder geschlossen -> gehe wieder in den Urzustand. Aber eben das passiert ja nicht also doch gleich wie clickevent?
Ich werd nicht schlau, was du meinst/willst.
😷 LLAP
--
“When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy.’ They told me I didn’t understand the assignment, and I told them they didn’t understand life.” —John Lennon
“When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy.’ They told me I didn’t understand the assignment, and I told them they didn’t understand life.” —John Lennon