how to remove duplicates in autocomplete
<pre><code>&lt;html&gt;
&lt;head&gt;
  &lt;script src=".\jquery.1.4.2.js"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" enter code heref=".\jquery.autocomplete.css" type="text/css" /&gt;   
  &lt;script type="text/javascript" src=".\jquery.autocomplete.js"&gt;&lt;/script&gt;

  &lt;script&gt;
  $(document).ready(function(){
      var data = "AndraPradesh;ArunachalPradesh;Assam;Bihar;Chhattisgarh;Goa;Gujarat;Haryana;HimachalPradesh;Jammuan&amp;Kashmir;Jharkhand;Karnataka;Kerala;MadyaPradesh;Maharashtra;Manipur;Meghalaya;Mizoram;Nagala;Orissa;Punjab;Rajasthan;Sikkim;TamilNadu;Tripura;Uttaranchal;UttarPradesh;WestBengal".split(";");

   $("#example").autocomplete((data),{ matchContains: 0, minChars: 1, scroll: true, width: 143, selectFirst: true, multiple: true, multipleSeparator: ';', autoFill: false });
});
  &lt;/script&gt;

&lt;/head&gt;
&lt;body&gt;
&lt;b&gt;&lt;font color="red"&gt;ENTER INDIAN 'STATE' NAME TO SEE AUTOCOMPLETE&lt;/font&gt;&lt;/b&gt;
&lt;br&gt;&lt;br&gt; Enter States &lt;input id="example" /&gt; &lt;button onclick="javascript:displaycontent();"&gt;click me&lt;/button&gt;
&lt;/body&gt;
&lt;script&gt;
function displaycontent()
{
var alertmsg = $("#example")[0].value;
alert(alertmsg );
}
&lt;/script&gt;
&lt;/html&gt;
</code></pre>

<p>I have use this above code ....once i enter the state name....it should not appear in the next attempt when we are entering another sate name</p>
