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 -

jquery - jqGrid update specific column data with out refreshing the entire column? -

objective c - Is there a way in OCMockito to make stubs fail when an unknown method is called? -