Autocomplete only value in array

Autocomplete only value in array

hi all
how can i prevent users to type other things in inputfield then value in array. For example
  1. <html lang="en">
  2. <head>
  3.     <meta charset="utf-8" />
  4.     <title>jQuery UI Autocomplete - Default functionality</title>
  5.     <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
  6.     <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
  7.     <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
  8.     <link rel="stylesheet" href="/resources/demos/style.css" />
  9.     <script>
  10.     $(function() {
  11.         var availableTags = [
  12.             "ActionScript",
  13.             "AppleScript",
  14.             "Asp",
  15.             "BASIC",
  16.         ];
  17.         $( "#tags" ).autocomplete({
  18.             source: availableTags
  19.         });
  20.     });
  21.     </script>
  22. </head>
  23. <body>
  24.  
  25. <div class="ui-widget">
  26.     <label for="tags">Tags: </label>
  27.     <input id="tags" />
  28. </div>
  29.  
  30.  
  31. </body>
  32. </html>

users should type only the value from availableTags, other things should be avoid.

thx