I have some fields which I want to duplicate to add more values as required.
I have SELECT and TEXTAREA combination
Is there a way to duplicate these 2 fields by clicking a BUTTON?
The problem is SELECT (MULTIPLE) and TEXTAREA combination. Is there any other way to combine these 2?
Yes, using cloneNode(), followed by appendChild(). If you want that <select> to be multiple, you need to add the attribute multiple="multiple".