how to take values of 3 forms in different arrays and then save them in one with jquery to send data by ajax

0

I would like to know the best handle of joining three arrays that contain different values, in a single array and then send all the information obtained by ajax .

The way I am capturing the data is as follows:

var data = [];
 var data_experiencias_datos = [];
    $(".agrega_empre").on('click', function () {

    data_experiencias_datos.push($('#form_experiencias').serialize());
    data.push(data_experiencias_datos);

    console.log('valor de experiencias', data_experiencias_datos);
});

data is the main variable in which I want all the values of the different forms to arrive and they are adding me but the data_experience-data array arrives in duplicate as follows.

beforehand I thank whoever can help me and give an explanation of what I am doing wrong.

    
asked by user98737 03.09.2018 в 01:30
source

0 answers