Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get child by name

let myForm = document.getElementById('form');

let child = myForm.querySelector('input[name="username"]');

console.log(child);
 
PREVIOUS NEXT
Tagged: #javascript #child
ADD COMMENT
Topic
Name
3+1 =