I've been using it for quite some time but i still don't know - what is the e
object you have access to when passing it over to onChange
or onSubmit
?
Asked
Active
Viewed 540 times
-2

Gambit2007
- 3,260
- 13
- 46
- 86
-
3Just log it to your console and you will see exactly what it is. – Sebastian Speitel Nov 14 '18 at 20:10
1 Answers
7
It depends. Generally it's information about the event.
- For
onsubmit
andonchange
it conforms to theEvent
interface. For
onclick
it's aMouseEvent
.You can look up the specifics on MDN.

halfer
- 19,824
- 17
- 99
- 186

Daniel A. White
- 187,200
- 47
- 362
- 445
-
The last time I dupevoted and answered the question I was told that it would be unfair to other answerers, just saying ... – Jonas Wilms Nov 14 '18 at 20:13
-
1@JonasWilms Generally speaking I think that questions should *not* be answered if they are duplicates. That said, Daniel had answered this *before* closing it. While it may or may not be the case, I saw that he closed it shortly after I flagged it as a dupe, so he may not have realized it was a dupe when answering. I suppose the follow-up question would be "Should I delete my correct/good answer to a duplicate question after it's been closed?" – Tyler Roper Nov 14 '18 at 20:17