6
I’m trying to create a array
in jQuery
using the . push() function where each element should contain another array
within it. The structure 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 php file, do all the processing to be written to mysql. Basically that’s it.
How to proceed?
Bruno saw your fiddle now, there are some simple bugs to solve. Can you give an example of how you want to use this array? so it’s easier to get the answer right.
– Sergio
My intention is to generate a list of information with the invoices of a
NF-e
, where each invoice will have its invoice number, expiration date and value. With this I want to generate aarray
in thejquery
to pass viaajax
as a parameter and in the php file, do all the processing to be written tomysql
. Basically that’s it.– Bruno Duarte