Answers for "js get input element by name"

2

javascript get element by name

document.getElementsByName("acc")[0].value
Posted by: Guest on March-18-2021
0

how to get input name in javascript

// Using jQuery:
$('#id').attr('name');
// Using vanilla js:
let name=document.getElementById("id").name;
Posted by: Guest on April-07-2021

Code answers related to "js get input element by name"

Code answers related to "Javascript"

Browse Popular Code Answers by Language