This time we will talk about javascript, our second favourite language.
Did you know that you can create an editable div? Let’s see how to use it and how to get the inner html of the div and print it in another div. It could be useful.
<script> function inner(id){ console.log("...") div = document.getElementById(id); space = document.getElementById("space"); div.innerHTML = space.innerHTML; } </script> <div id="space" contenteditable="true" >I'm a cool editable div ;)</div> <button onclick="inner('write')">Click</button> <div id="write"></div>
Subscribe to the newsletter for updates
Tkinter templates
My youtube channel
Twitter: @pythonprogrammi - python_pygame