In my code I want to send two parameters in my data. Name is one of my parameter names and its value is in a variable a. Another parameter name is type with the value in the str variable. The following did not work for me:
$.ajax({
type: "POST",
url: "./server",
data: "name="+a+"type="+str,
success: function(msg){
alert( "Data Saved: " + msg);
}
})
Any suggestions?