jQuery cloning html, update the DOM?

前端 未结 2 1626
灰色年华
灰色年华 2021-01-15 06:47

I need help of Javascript / jQuery experts to solve the next problem:

---- 1. this Javascript alerts the id of a selected option in a select html tag:

         


        
2条回答
  •  被撕碎了的回忆
    2021-01-15 06:48

    Have you tried .clone(true) which clones all the handlers attached? It's described at the bottom of the Clone documentation.

提交回复
热议问题