oclockvn
4/14/2015 - 2:22 PM

typeahead.js

<script>
            $(document).ready(function () {
                var items = [
                    "Pencil",
                    "Pen",
                    "Ruler",
                    "Computer",
                    "Cutter",
                    "Cleaner",
                    "Mouse",
                    "Keyboard",
                    "Book"
                ];

                var option = {
                    source: items
                };

                $('#search').typeahead(option);
            });
        </script>