+ 16
Why is it showing error[SOLVED]
document.getElementById https://code.sololearn.com/W7OpFpX44RX8/?ref=app
10 Antworten
+ 6
'b' in 'by' should be capital in your code.
Also put this line inside the function.
var x= document.getElementById("thrd");
+ 5
Try:
put your code in function,and 'b' in 'By' should be capital in your code.
function usage(){
var x = document.getElementById("thrd");
x.style.display ="none";
document.body.style.backgroundColor = "white";
}
+ 4
𝕄𝕚𝕔𝕙𝕒𝕖𝕝 𝕃𝕚𝕦 [🄰🄲🅃🄸🅅🄴] (っ◔◡◔)っ I need to make none
+ 2
Miss the first mistake is
var x= document.getElementbyId("thrd");
function usage(){
x.style.display ="none";
document.body.style.backgroundColor = "white";
}
That Is in getElementbyId the b should be capital
I mean it would be getElementById("thrd");
+ 2
Ambicaa[space🚀🌌Exams] document.getElementById() is case sensitive
+ 2
You need to make block
+ 2
Item.style.display = "block"
+ 2
Item.style.display = "none"
+ 1
Kankan Mayang how's this from anywhere telling why there is error I don't think so