I need a JavaScript function that takes three values:
function createTable(columnNum, rowNum, orientation){
}
The columnNum identifies the number of columns and rowNum the number of rows with orientation meaning either horizontal or vertical. Each cell will have an input button with an onclick event that passes the id to another function
So createTable(3,3,horizontal){}
will produce a table with 9 buttons. 3 across and 3 down. They will be labeled as
box 1 box 2 box 3
box 4 box 5 box 6
box 7 box 8 box 9
and
createTable(3,3,vertically){}
box 1 box 4 box 7
box 2 box 5 box 8
box 3 box 6 box 9
Hello.
I can do the function within the next 2 hours. I will even do it for free as long as i get some reputation ;-). I m just starting on this site and need get some work done.