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.