I have an array like this
Array ( [0] => 131 [1] => 103 [2] => 21 [3] => 94 [4] => 107 [5] => 130 [6] => 92 [7] => 128 [8] => 115 [9] => 81 )
How to pass this array in ajax call
Javascript Code is:
$(document).ready(function(){
var recentchatfriendids = [];
//actual array
$.ajax({
url: '/friends/message/getmessagestatus';
data: {
recentchatfriendids : recentchatfriendids
},
success: function(response){
},
});
});