0

I use ajax request post and I add another var in data like

$.ajax({
 url: action_url,
 type: "POST",
 data: formData + "&par1=1",
 success: function(data) {
     alert(data);
 },
 error: function() {
     alert("Oops..!! Problem Ocurred. Please Try Again..!!");
 }
})

then you see +&par1=1

i want to change 1 into variable how could I do it?

dbc
  • 104,963
  • 20
  • 228
  • 340
Slatan-ko
  • 256
  • 3
  • 7
  • 18

0 Answers0