Skip to content
Advertisement

Tag: clonenode

Clone and change onclick code of inner button

I have a div with id=”add-dependent” including 2 rows and a button (add dependent) inside of the div. When “add dependent” button is clicked, the first row would be cloned and insert before (add dependent) button. Actually I have another button outside of the div called (add applicant) and by clicking it, whole of the div would be cloned and

Advertisement