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
  • 91,441
  • 18
  • 186
  • 284
Slatan-ko
  • 248
  • 2
  • 6
  • 18

0 Answers0