dimanche 6 août 2017

How to click button from ember.js controller

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?

Thanks in advance
Sedrunum




Aucun commentaire:

Enregistrer un commentaire