I'm trying to use .focus() on the following form field without success. The tabindex
of the div this element is in is 0.
<input class="form-control ng-pristine ng-valid ng-empty ng-touched" id="accessionNumber" type="text" name="filter.accessionNumber" ng-model="selectFields.accessionNumber" style="">
I'm using the following:
document.getElementsByName("filter.accessionNumber")[0].focus()
I've also tried document.getElementById
using the "accessionNumber" ID as well as the .click()
function instead of the .focus()
function but none have worked so far
Thanks!