JavaScript Get Child By Name

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

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

console.log(child);
garzj