Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to target child element of an event object in JS

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

}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #target #child #element #event #object #JS
ADD COMMENT
Topic
Name
9+2 =