My challenge involves an input form connected to an element that dynamically changes the properties of its children. I am seeking a solution to duplicate or clone this element along with its input form. Currently, I am utilizing element.cloneNode(true)
to achieve this duplication.
However, the method I'm using is not producing the desired outcome as the inputs are radio buttons, each with unique IDs. I am looking for a way to maintain the functionality of labels and input fields while still being able to clone them. While I prefer a solution using vanilla JavaScript, I am open to any suggestions that will help overcome this issue. Thank you for your assistance.