Cant seem to get this working how I want it, any help appreciated
Al lthe abouve work fine providing that I use the variable for the name of the forms elements etc.
however I really need to use the format variable[x][y] and thats where everything stops working.
numRows = the current row number of the table, it counts up as people add new lines to the form.
newCell2.innerHTML = '<input type="hidden" name="building[' + (numRows) + '][id]" ' + (buildid) + ' /><input type="text" name="building[' + (numRows) + '][name]" ' + (buildingname) + ' />';
buildid & buildingname = text strings that add a value to the input tags.
then in my second section Im trying to read in the values of these arrays using.
buildingarr = document.getElementsByName("building");
opts = null;
opts = opts +'<option value="' + (buildingarr[i][name].value) +'">' + (buildingarr[i][name].value) +'</option>';
newCell5.innerHTML = '<select name="room[' + (numRows) + '][building]">' +