UNPKG

jquery-textcomplete

Version:

[![npm version](https://badge.fury.io/js/jquery-textcomplete.svg)](http://badge.fury.io/js/jquery-textcomplete) [![Bower version](https://badge.fury.io/bo/jquery-textcomplete.svg)](http://badge.fury.io/bo/jquery-textcomplete) [![Analytics](https://ga-beac

25 lines (21 loc) 646 B
Events ====== textComplete fires a number of events. - `textComplete:show` - Fired when a dropdown is shown. - `textComplete:hide` - Fired when a dropdown is hidden. - `textComplete:select` - Fired with the selected value when a dropdown is selected. ```javascript $('#textarea') .textcomplete([/* ... */]) .on({ 'textComplete:select': function (e, value, strategy) { alert(value); }, 'textComplete:show': function (e) { $(this).data('autocompleting', true); }, 'textComplete:hide': function (e) { $(this).data('autocompleting', false); } }); ```