javascript - Updating text not working -


I want to be able to click on the button, and keep the text in the duration of the content in the function. Any help would be appreciated!

function update text () {document.getElementById (bar). WinnerHTML = "hey"; }
  & lt; Span id = "bar" & gt; Sup & lt; / Span & gt; & Lt; Button onClick = "UpdateText ()" & gt; Hi & lt; / Button & gt;   

Quotes inside you times .

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

In Bela, you should set the dropdown on "Framework and Extensions" on "No wrap-in " ". This is your & lt; Head & gt; The tag in the tag is similar to the UpdateText () function, and then it works.


Comments