hi, my first post
hope somebody can help me. I have a html form with an 2d array of input fields. i need to be able to reference this array from js. i have seen a post that explains how to do it for a 1d array of inputs, but im not able to "replicate" it for a 2d array.
the html is this (sorry i dont know how to post this as "code"...)
then in the js function i have tried to retrieve it with:
any help please?
hope somebody can help me. I have a html form with an 2d array of input fields. i need to be able to reference this array from js. i have seen a post that explains how to do it for a 1d array of inputs, but im not able to "replicate" it for a 2d array.
the html is this (sorry i dont know how to post this as "code"...)
Code:
<input type="text" name="par[0][name]" value=""/>
<input type="text" name="par[0][price]" onblur="process()" value=""/>
<input type="text" name="par[0][quantity]" onblur="process()" value=""/>
<input type="text" name="par[1][name]" value=""/>
<input type="text" name="par[1][price]" onblur="process()" value=""/>
<input type="text" name="par[1][quantity]" onblur="process()" value=""/>
<input type="text" name="par[2][name]" value=""/>
<input type="text" name="par[2][price]" onblur="process()" value=""/>
<input type="text" name="par[2][quantity]" onblur="process()" value=""/>
then in the js function i have tried to retrieve it with:
Code:
var mult = document.mi_form.elements["par[][]"];
any help please?