Oh, and if you are using it in React, you'd likely pass a ref to the FormData constructor - like new FormData(formElRef) instead of getting the element with document.getElementById
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I've used MDN alot. For example this post
developer.mozilla.org/en-US/docs/W...
One thing I've learnt is to use
Object.fromEntries(formData.entries())
to get the values from the form. See the snippet for more detailsthanks
Oh, and if you are using it in React, you'd likely pass a ref to the FormData constructor - like
new FormData(formElRef)
instead of getting the element withdocument.getElementById