[Solved] Form ajax group label and value on submit


After submit run a loop and build your array.

For example:

var arr = [];

$(form).find('input[name="product"]').each(function(index,element){

arr.push({ 'label': $(element).parent().find('label').text(), 'value':$(element).val() }); 

});

solved Form ajax group label and value on submit