js get elemnt by name attroibute code example Example: javascript get element by name document.getElementsByName("acc")[0].value