- Notifications
You must be signed in to change notification settings - Fork33
Closed
Labels
Description
I would like to re-rendering the<pre>
in the JS click event. The core logic is to update the content of<pre>
, and callpseudocode.renderElement
again. But re-rendering fails and it still shows the content before updating.
consttextInput=document.getElementById("input");constoutput=document.getElementById("output");constupdateButton=document.getElementById("generate");updateButton.addEventListener("click",()=>{constinputValue=textInput.value;output.innerHTML=inputValue;pseudocode.renderElement(output);});