Right now my webpage looks like this and the grey section is the part I wanted copied when the "Add another file?" is clicked. Similar to this example .
The platform where I'm coding on right now is google apps script so if you could make your answer suitable for GAS it'd be greatly appreciated! thanks! I will put a jsfiddle of my code in the comments
Position the DOM for the part to be copied in a hidden location.
Then clone it and insert it into the appropriate location as needed.
https://developer.mozilla.org/en-US/docs/Web/API/Node/cloneNode
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.