+ 3
Why is my script not working?
It should make the first paragraph gone but it's not working and throwing an error i don't understand. Plz help meš„² https://code.sololearn.com/WzwAwgcnXoYl/?ref=app
4 Answers
+ 5
onload=()=>{
let div1=document.getElementById("d1");
div1.style.display="none";
};
to load, along html, Wrote in ,
onload=() => {
//js code
}
otherwise it is loaded before html reader..
+ 2
Jayakrishnaš®š³ okay so i did this, is this how we do that?
https://code.sololearn.com/W3g23Tj2VEEE/?ref=app
+ 1
Yes. Rishi š
+ 1
Jayakrishnaš®š³ thank you very much :)