DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+2 =
Submit