jQuery cleaning up two strings (compare string1 to string2 and remove items not uniq)
- by atmorell
Hello,
How do I remove the oldItems from the newItems string? (remove Blue and Green) newItems is generated from jQuery autocomplete and I would like to remove already selected items from the select list.
newItems = Blue \n Red \n Black \n Yellow \n Green \n
oldItems = Blue,Yellow,Orange,Green
Best regards.
Asbjørn Morell.