[Solved] Updating text not working [closed]


You need to put bar inside quotes.

document.getElementById("bar").innerHTML= "hey";

In the fiddle, you should set the dropdown at “Frameworks & Extensions” to “No wrap – in <head>“. This does the same as having the UpdateText() function in your <head> tag, and then it works.

7

solved Updating text not working [closed]