Image

javascript html random question:

so what i'm trying to do is this:

i have a page with javascript enabled. when the checkboxes are checked, different cells pop up, for instance this one:
Image

this button, however, does nothing. what i want it to do, is take the text and display it down in a new cell (where the "this is ridiculous" text is now):
Image

i am having trouble figuring out how to pass the text into the html.
it's blowing my mind.

if you could help me out, it would be greatly appreciated. :)

thanks.


EDIT:: NEW PROBLEM::

so.. now i've created these text boxes in a loop so that every time the loop executes another textbox appears... in the vein of
input type='text' name='order"+i+"' size='3'

later.. i have a function that wants to get the values from these text boxes, but i can't seem to figure out how to do this..

i've been trying along the lines of putting this:
var name = "form.order"+i+".value";
orderArray[i] = name;

in a loop... but for obvious reasons that doesn't work..

suggestions??