Catches JS id?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
26 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 | 26 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,187 answers
0 comments
40,796 users