how to target child element of an event object in JS code example
Example: how to target child element of an event object in JS
function onSubmit(event){
console.log(event.target.querySelector('input'));
}
function onSubmit(event){
console.log(event.target.querySelector('input'));
}