I am using Autocomplete function in jQuery (much like Facebook).
As I mention in image, I don’t want duplicate values in the Autocomplete.
see demo http://wharsojo-js.googlecode.com/files/jquery.autocompletefb-0.1.1.zip
Here is my code:
jQuery.noConflict();
jQuery(document).ready(function()
{
var i=document.getElementById('autocomplete_1').innerHTML;
var acfb =
jQuery("ul.first").autoCompletefb(
{
urlLookup:i.split(','),
deleteimgurl:"deleteimg/",
}
);
jQuery("#acfb-input" ).blur(function()
{
document.getElementById('auto_complete_text').value=acfb.getData();
});
});

Hiya working demo http://jsfiddle.net/Yvnfx/ or without alert: http://jsfiddle.net/Yvnfx/1/ Taking care of deletion as well http://jsfiddle.net/wbQZU/4/
So behavior wise: if you selected java the
aotocompletewill not show java in available tags.key is to create an array of
usedItemswhich and then make anew array = existing array - used itemsJquery code
Full Jquery code