Answer the question
In order to leave comments, you need to log in
How to convert data from html form to json?
How can I convert any kind of data from html form to json using vanilla js?
Answer the question
In order to leave comments, you need to log in
If you need to send via AJAX, then you can use FormData .
var data = new FormData(myForm);
var req = new XMLHttpRequest();
req.send(data);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question