window.addEventListener('load', (event) => {
hiddentwo.classlist.remove(`hidesection1`)
});
its always returning undefined i dont know why
html
<section id="sectiontop"
class="hidesection1">
css
.hidesection1 {
display:none;
}`Preformatted text`
Sky020
2
Hello there,
Would you mind providing more information?
What is returning undefined
? What is your full code?
The best way to get help with these kinds of problems is by providing a link to a MVP on something like CodePen.
Where are you querying for (getting a reference to) the hiddentwo
element?
The property on the element is classList
not classlist
(captial L).
1 Like
system
Closed
4
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.