JavaScript Get Child par son nom
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)