Get child element from event.target Get child element from event.target angular angular

Get child element from event.target


You can use the documentElement.querySelector() method.

function onSubmit(event){    console.log(event.target.querySelector('input'));}

You can use any valid CSS query to get the element you need


This should help

onSubmit(event) {    console.log(event.target.firstChild.children[1]);}