Newbie question - can somebody please provide an example or reference to some existing code on how to create a table from an array of javascript data, please?
I have an array of data to populate the table tbody; each element in the array represents a row, and contains an array of the contents of each column. There could be additional rows for the theader and tfooter. I want a function I can pass a table id and the data array, that would populate the table. I'd also like ot be able to clear all the rows of the table, so I could insert different data that may contain fewer rows. thanks.