Can anyone give me a sample/example of JavaScript with a multidimensional array of inputs? Hope you could help because I’m still new to the JavaScript.
Like when you input 2 rows and 2 columns the output of it will be 2 rows of input and 2 columns of input.
Like this:
[input][input]
[input][input]
http://jsfiddle.net/z4Un3/
And if you’re wanting to store DOM elements:
Not real sure how useful the above is until you attach the elements. The below may be more what you’re looking for:
http://jsfiddle.net/z4Un3/3/
Or, maybe this:
Which gives:
In the console. If you want to output that to text, you can
result.join(' ');, which would give you2 0.http://jsfiddle.net/z4Un3/6/
EDIT
And a working demonstration:
http://jsfiddle.net/z4Un3/8/