Created
May 30, 2020 19:05
-
-
Save MeyCry/a3af47fd2565fa9c8635d96801631025 to your computer and use it in GitHub Desktop.
Get from event submit name of input as key and value of input as value of object.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = new FormData(ev.target); | |
const dataObj = Object.fromEntries(data.entries()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment