How to target an input element by the input-field's name ("name" in DOM tree), in vanilla JavaScript (ES6 or later)?
I ought to do it with document.querySelector(''). I didn't find a way. I only found the older getElementsByTagName which per my understanding deals with the HTML element's name and not with a name attribute of (usually) an input element itself.
Is it possible in ES6 without jQuery?