To make a bautofill textbox, give it the 'bautofill' class!
Above are two examples of bautofill text boxes. The data from the text boxes is populated from JSON arrays of strings. In the case of the top example, this is provided directly in the HTML. The bottom is provided via JavaScript. You can of course populate these lists using AJAX!