I just like asking about adding data to the array. But the data I wanted to supply is a table of input fields. Here is the code I trained to get the data:
http://jsfiddle.net/yajeig/4Nr9m/69/
I have an add button that every time I press this button it stores data in a variable my_data.
I want to create output in my variable something like this:
my_data = [ {plank:"1",thickness:"4",width:"6",length:"8",qty:"1",brdFt:"16"}]
and if I add other data again, it will add this variable, and it will be something like this:
my_data = [ {plank:"1",thickness:"4",width:"6",length:"8",qty:"1",brdFt:"16"},
{plank:"2",thickness:"5",width:"6",length:"2",qty:"1",brdFt:"50"}]
The code that I have now is very bad, so please help.
Currently, my conclusion is:
1,4,6,4,1