Answers for "how to send js array from ajax"

0

how to send js array from ajax

$.ajax({
            type: "POST",
            url: "submit",
            data: ({detailsArr : detailsArr }),
            success: function(html){
              alert( "Submitted");
                }
          });
Posted by: Guest on November-24-2020
-2

how to send js array from ajax

$.ajax({
            type: "POST",
            url: "submit",
            data:JSON.stringify(detailsArr),
            success: function(html){
              alert( "Submitted");
                }
          });
Posted by: Guest on November-24-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language