I am trying to find the element in html by angularjs.
Here is the html:
<button class="btn btn-primary multi-files" type="button">
<span>Choose multiple files</span>
</button>
<br/><br/>
<input ng-file-select type="file" multiple style="display: none"/><br/>
I am trying to get the button element by class name multi-files, then I tried
var multibutton = angular.element(element.getElementsByClassName(".multi-files"));
But it does not work, and tried element.find
but it only works for tag.
Is there any function that can get element by id or classname in angularjs?