Trying to pass an array to a php page using an ajax request. The current response is ction Array() { [native code] }
as opposed to the actual array contents (which im positive is not empty). Here my code:
function GetPaginationPage(array1) {
var jsonString = JSON.stringify(array1);
$.ajax({
type: "POST",
url: "includes/get_pagination_page.php",
data: {data : jsonString},
success: function(data){
$('.contestants_list').append(data);
}
});
};
UPDated with json, its now passing 'undefined'