+ 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 Respuestas
+ 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 :)