Filter response in jQuery autocomplete
问题 I'm trying to implement jQuery.autocomplete which I use to enter tags (much like here on SO). However, I don't want to show tags that I have already in my list. If I have added foo already I don't want it to show up as a suggestion. The list of tags are fetched from my server. However, I have some issues with altering the ui.content object. I use the response method found here: response: (event, ui)-> # Fetch already added tags current = $('input#photo_tag_list').val().split(',') # Filter out