get name of input javascript code example
Example: how to get input name in javascript
// Using jQuery:
$('#id').attr('name');
// Using vanilla js:
let name=document.getElementById("id").name;
// Using jQuery:
$('#id').attr('name');
// Using vanilla js:
let name=document.getElementById("id").name;