element get child by tag code example
Example 1: document get element by tag
var list = document.getElementsByTagName("UL")[0];
list.getElementsByTagName("LI")[0].innerHTML = "Milk";
Example 2: javascript get child by name
let myForm = document.getElementById('form');
let child = myForm.querySelector('input[name="username"]');
console.log(child);