DEMOS / Autocompletion

The #textbox_autocomplete{} element gives you a simple way to add autocompletion with options to a textbox element. It relies on JSON encoding, and expects your application to have two functions exported: autocomplete_enter_event(SearchTerm, Tag), which is called as the user types and autocomplete_select_event(SelectedElement, Tag), which is called when the user selects and element from the list.

View Module Source

Copyright © 2008-2015 Nitrogen Web Framework. Released under the MIT License.