javascript get child node by name 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);