Answers for "fetch form in javascript"

-2

fetch form in javascript

// Build formData object.
let formData = new FormData();
formData.append('name', 'John');
formData.append('password', 'John123');

fetch("api/SampleData",
    {
        body: formData,
        method: "post"
    });
Posted by: Guest on March-23-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language