When I located a DOM element via:
$('md-autocomplete-wrap button')[0]
which the browser console actually reveals correctly to be an HTML button, I'd like to click this button through a controller action. Nevertheless:
$('md-autocomplete-wrap button')[0].click();
doesn't do the trick as nothing happens. How do I correctly trigger the click()
function of this button?