I need help with creating table with custom number of rows / columns. I need two input fields for number of rows and columns and after submit table should change dynamically with given numbers of rows / columns. Also, table should be populated with values starting from bottom right cell spiral / in circuit to the left and top until all cells are populated like in this picture (in clockwise direction): http://i.imgur.com/O4GRpND.jpg
What is the best way to this with HTML, AngularJS, jQuery / JavaScript.
Thanks alot.
document.createElement("td")anddocument.createElement("tr")with part of your solutionfor (var x=0; x<numCols; x++)and you're pretty much halfway there.