I am appending the .text() of an anchor to an input when its dragged and dropped to it.
The thing is that I need them comma sepated and not repeated:
If I am tying to add 'string 1' to the input when the value is already 'bla, ble, string1', I need to prevent to be duplicated,
How would you do it?
My first guess is to make an explode by ',' and combine it with a for loop, but I don't think that is really optimized at all.
 
     
     
     
    