I am using Angular JS - ui.bootstrap.typeahead:
I would like to click a button and focus an input field and automatically show the typeahead suggestion dropdown. I h
you can achieve by this code
$scope.change = function() { var e = document.getElementById("test"); var $e = angular.element(e); $e.triggerHandler('focus'); $e.triggerHandler('input'); }
change the test to your type-head ID