I'm trying to create a array
in jQuery
using the .push () function where each element should contain another array
inside it. The framework I need to create is this:
array( 'elemento1' => array( 'elemento1' => 'dado1', 'elemento2' => 'dado2' ), 'elemento2' => array( 'elemento1' => 'dado1', 'elemento2' => 'dado2' ), 'elemento1' => array( 'elemento1' => 'dado1', 'elemento2' => 'dado2' ), )
My intention is to generate a list of information with the invoices of an NF-e, where each invoice will have its invoice number, expiration date and its value. With this I want to generate an array in jquery to pass via ajax as parameter and in the php file, do all the processing to be written in mysql. That's basically it.
How to proceed?