get element by name js code example
Example 1: javascript get element by name
document.getElementsByName("acc")[0].value
Example 2: javascript get element by id
var element = document.getElementById("YourElementId");
Example 3: select input by name javascript
var element = document.querySelector("form[name='second'] input[name='secondText']");