JavaScript Get Child por su nombre
let myForm = document.getElementById('form');
let child = myForm.querySelector('input[name="username"]');
console.log(child);
garzj
let myForm = document.getElementById('form');
let child = myForm.querySelector('input[name="username"]');
console.log(child);
let children = parentElement.childNodes;
let firstChild = parentElement.firstChild;
Code language: JavaScript (javascript)