send jquery 2 array in ajax java code example
Example: how to send multiple array in ajax
$.ajax({
url: "/something",
type: "GET",
data: {p1: ["v1", "v2"], p2: ["v1", "v2"]}, // multiple array we want to send
success: function(data){
console.log(data);
}
}).done(function(){
console.log("Success.");
}).fail(function(){
console.log("An error has occurred.");
}).always(function(){
console.log("Complete.");
});