I'm trying to pass an array trough an Ajax POST request using jQuery. I can't seem to get it done. Here is my code:
var settings = [];
$('.settingp input').each(function(){
settings[$(this).attr('id')] = $(this).val();
});
$.post("editSettings.php", { 'settings': settings });
The request happens, but there is no data in it. Any idea what am I doing wrong?