I am attempting to incorporate the code snippet below:
var flag = new Array();
var name = $("#myselectedset").val();
$.ajax({
type: 'post',
cache: false,
url: 'moveto.php',
data: {'myselectset' : name,
'my_flag' : flag
},
success: function(msg){
$("#statusafter").ajaxComplete(function(){$(this).fadeIn("slow").html(msg)});
}
});
As you can see, "name" is a single string and "flag" is an array. I'm unsure if I am using the correct format for passing them through the ajax call. Any assistance would be greatly appreciated. Thank you.