Drag and drop dynamically created elements
Clash Royale CLAN TAG #URR8PPP Drag and drop dynamically created elements I've the below addText function which (coupled with my removeText, which needn't be pasted) works absolutely fine, however I am looking for a way by which the products of the addText function can become drag and drop-able, although I'm honestly not quite sure where the function for this is required (i.e. what it must call/ append etc.). I have been on the lookout for code that answers my question however I seem to only find that which can make already created text drag/drop-able unfortunately. <div id="planner"> <div class="week week1"> <div class="add"> <h1>Weeks</h1> <textarea></textarea> <button type="button" add-text>Add text</button> <button type="button" remove-text>Undo</button> </div> </div> <div cl...