Answers for "form append other data feild and send through ajax"

0

form append other data feild and send through ajax

var data = new FormData();
data.append('name', 'Bob'); 

function sendData() {
    $.ajax({
        url: '/helloworld',
        type: 'POST',
        contentType: false,
        data: data,
        dataType: 'json'
    });
}
Posted by: Guest on July-08-2021

Browse Popular Code Answers by Language