I'm very new to Javascript and one of the buttons I created can't seem to find the id it's looking for.
<button type="button" onclick=document.getElementById("text").innerHTML = "replacement text">English</button>
<button type="button" onclick='document.getElementById("text").innerHTML = "replacement text"'>Nederlands</button>
<p class=text id=text>
the first onclick can't find the id from the
and I don't know why. the class=text is used for CSS. If any of you would be so kind to answer what's wrong. It would be greatly appreciated.