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

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

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

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