+ 5
Why isn't using innerHtml changing text inside <p> tag
5 Respostas
+ 2
innerHTML, not innerHtml (case sensitivity)
+ 1
and a[0].innerHTML, as getElementsByTagName return an array-like object (node collection)...
notice the 's' in getElementsByTagName
... while there's not in getElementById ;)
+ 1
Wow I saw that in comments innerHTML but I thought that innerHtml was working right because it did(probably that was innerText!) maybe I didn't noticed clearly! Thks
0
Yup thks:-)
- 2
th CJ CM