Copy link to clipboard
Copied
Hello,
I've started working on an like a checklist or shopping list. You write what you want into the Textinput component and when you press done it will be what the check box is called. (if that makes sense). Is there a way to do it? Thanks for any help!!
Copy link to clipboard
Copied
if your textinput has instance name ti and your checkbox instance name is cb, you can call doneF();
function doneF(){
document.getElementById("cb").nextSibling.outerHTML = '<label for="cb" style="box-sizing: border-box;">'+document.getElementById("ti")+'</label>'
}