arijulianto

jqueryUI Autocomplete

May 11th, 2014
504
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. $(function(){
  3.     var kategoriSrc = ["Request Customize","Kesalahan User","Kesalahan Program","Lain-lain"];
  4.     $(".item").autocomplete({source:kategoriSrc,minLength:0}).focus(function(){$(this).autocomplete("search")});
  5. })
  6. </script>
  7. <input type="text" name="kategori" size="25" class="item" />
Advertisement
Add Comment
Please, Sign In to add comment