Ajax Post request body returns undefined – Jquery ajax
I am trying to send some data to backend using ajax post request. Like this $.ajax({ url: "/aa", dataType: 'text', type: 'post', contentType: 'application/x-www-form-urlencoded', data: input.value, success: function (result) { console.log("Success", input.value); }, error: function (data) { console.log(data); } });…