Use the cloneNode() method to clone the element. Set a different id property on the element. For example, clone.id = 'another-id' .
確定! 回上一頁