Catches JS id?

0 like 0 dislike
11 views
Please do not smile and not laugh.
only a couple of days in js.
js script does not see the id ? what are the reasons
<!DOCTYPE html>Documentvar roma = document.getElementById("para1");roma.innerHTML = "Man";Some text here
by | 11 views

3 Answers

0 like 0 dislike
<!DOCTYPE html>\r\r\r\rDocument\r\r\r\rSome text here\r\r\rpara1.innerHTML = "Man";\r\r\r
by
0 like 0 dislike
You are trying to find an element that is not yet loaded.

And in future use the code tag.
R3HGJm.png
by
0 like 0 dislike
<!DOCTYPE html>\r\r\r\rDocument\r\r\r\rSome text here\r\r\rvar roma = document.getElementById("para1");\rroma.innerHTML = "Man";\r\r
by

Related questions

0 like 0 dislike
1 answer
asked Jun 10, 2019 by flapflapjack
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
0 comments
33,932 users