jquery - Programmatically closing typeahead result display? -
i trying find way programmatically close typeahead result display , clear input.
clearing input easy adding next in typeahead:closed event handler:
$(obj.currenttarget).val("");
however, can't seem find way close dropdown. have tried various things in typeahead:selected, typeahead:closed , typeahead:autocompleted event handlers, nil works.
how can close result display using javascript?
finally figured out. adding $(obj.currenttarget).trigger('blur'); in aforementioned events close results display.
jquery typeahead.js twitter-typeahead
No comments:
Post a Comment