bootstrap-ajax-typeahead icon indicating copy to clipboard operation
bootstrap-ajax-typeahead copied to clipboard

Clear Value input after select

Open yalinmuslem opened this issue 9 years ago • 1 comments

how to Clear Value input after select

yalinmuslem avatar Jan 22 '16 07:01 yalinmuslem

Same question, but I am not sure is this possible, because value is added after onselect callback is fired?

So i went with a small hack:

inside onSelect callback i added

setTimeout(function(){$('#typeahead-input').val(''); }, 200);

which did the job.

goranefbl avatar Jan 26 '16 17:01 goranefbl