How can I pass an associative array to a server using jQuery? There is the following array:
arr = []; arr['param1'] = 'text1'; arr['param2'] = 'text2'; arr['param3'] = 'text3'; The normal transmission method does not work:
jQuery.ajax({ url: path, async: false, type: 'POST', data: {'array': arr}, dataType: 'json', success: function(data) {...} });