Answers for "get input by name"

4

select input by name javascript

var element = document.querySelector("form[name='second'] input[name='secondText']");
Posted by: Guest on July-08-2020
1

jQuery select elements by name

$('[name=myElementName]') //match any element with name=myElementName. i.e: <div name="myElementName"></div>
Posted by: Guest on July-24-2019
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 "Javascript"

Browse Popular Code Answers by Language