this child js code example
Example: javascript get child by name
let myForm = document.getElementById('form');
let child = myForm.querySelector('input[name="username"]');
console.log(child);
let myForm = document.getElementById('form');
let child = myForm.querySelector('input[name="username"]');
console.log(child);