showing results for - "how to send multiple array in ajax"
Mira
08 Feb 2017
1$.ajax({
2	url: "/something",
3    type: "GET",
4    data: {p1: ["v1", "v2"], p2: ["v1", "v2"]}, // multiple array we want to send
5    success: function(data){ 
6   		console.log(data);
7    }
8}).done(function(){
9    console.log("Success.");
10}).fail(function(){
11    console.log("An error has occurred.");
12}).always(function(){
13  	console.log("Complete.");
14});