javascript - Jquery, cloned element been remove together when the original element removed -


i have form containing 1 input. when user clicking on button, input cloned , clone inserted after original input.

the user able remove clone.

my problem is, when remove original element used create clone, cloned element removed too.

i want remove target input user choosing.

a cloned element not linked original element. more selector using delete element has broad scope , deleting them all. can happen if selecting id and, commenter has suggested, have cloned id each element well.

without code snippets, it's hard diagnose issue.


Popular posts from this blog

javascript - Js, document.getElementById("ID").innerHTML, error -

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

utf 8 - split utf-8 string into bytes in python -