Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Is there a better way of duplicating elements? Reply To: Is there a better way of duplicating elements?

#190519
Senff
Participant

I personally use the jQuery clone() method to duplicate elements:

$('.some-element').addClass('original').clone().insertAfter('.some-element').addClass('cloned');