Answers for "js get name of element"

4

select input by name javascript

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

javascript get name of element

var name = element.getAttribute("name");
Posted by: Guest on August-13-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language