So I am thinking something similar to how you in php can just run a function within a html element and that way get it to echo something in the html element.
What I wanna do is to add contenteditable="true" within a html element onclick of another button.
The reason I wanna do this is because I have a paragraph that should become editable only after onclick of a button.
With a simple js onclick event you can do this
here's a fiddle for this.