skip to Main Content

Send file to api using Ajax – Jquery ajax

Im trying to send file to api using ajax , but form-data always null in both cases mentioned below <form id="myformdoc"> <input type="file" size="45" name="file" id="file"> </form> <script> $('#file').on("change", function () { // var formdata = new FormData($('form').get(0)); let myForm…

VIEW QUESTION

Ajax inserting duplicate records in Mysql Database – Jquery ajax

I have the following Ajax Code for submitting data to Mysql DB. <script> var amountdue; var amount; $('#btn-submit').on('click',function(e){ e.preventDefault(); if ($("#customer").validationEngine('validate')) { swal({ title: "Submit Confirmation", text: "Are you sure to submit the data?", type: "warning", showCancelButton: true, confirmButtonColor: "#126495",…

VIEW QUESTION
Back To Top
Search