javascript get find childs element code example
Example 1: javascript get child by name
let myForm = document.getElementById('form');
let child = myForm.querySelector('input[name="username"]');
console.log(child);
Example 2: how to get child element in javascript
let firstChild = parentElement.firstChild;
Code language: JavaScript (javascript)