How to move an element in the DOM?

前端 未结 1 1506
广开言路
广开言路 2021-02-12 14:11

I have an element #superWidget in the DOM that is very interactive. It uses jquery UI sortable, draggable, and a bunch of other plugins.

相关标签:
1条回答
  • 2021-02-12 14:35

    Rather than duplicating, just do this:

    document.getElementById('wrapperA').appendChild(document.getElementById('superWidget'));
    
    0 讨论(0)
提交回复
热议问题