I am trying to pass an arbitrary amount of arrays from my javascript to a php file with json through ajax, the problem word is arbitrary, assume following allmost-development-code
var arrayContaingAll;
$("li", "#list").each(function()
{
var a = array( $(".name",this).val(), $(".unit",this).val(), $(".amount", this).val() );
arrayContainingAll[] = a;
});
however, the [] functionality on an array does not work for me, how would i go around implementing such feature?
Yes, i know PHP damaged me thinking that way