I'm trying to change the text within a P tag from an external PHP file. Is there someway I can use innerHTML?
currently this is the line of code I'm trying to use but it doesn't seem to work
echo '<script>document.getElementById("response").innerHTML = "test";</script>';
I tried just doing
document.getElementById("response").innerHTML = "test";
However it also doesn't seem to work, I also tried the echo without the script tags