Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update rendering dynamically (on button click) #46

Closed
Assignees
SaswatPadhi
@ChenZhongPu

Description

@ChenZhongPu

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);});

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp