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

Home Forums JavaScript .clone problem Reply To: .clone problem


Although I don’t know for sure what’s wrong, there is a problem in your code, namely the ID attributes on the elements that you clone. You will end up with duplicates, which is invalid. Use classes or data-attributes instead.

Is there perhaps a live example of the problem? A CodePen?