Get Array/List of Column names
Get Array/List of Column names
Hi!
I would like to return an array of the columns with their names in it. I couldn't see an API call to do this so I thought about using this:
[code]
var cols = $('th');
var colnames = [];
$.each(cols, function() {
colnames.push($(this).text());
});
[/code]
Thanks
I would like to return an array of the columns with their names in it. I couldn't see an API call to do this so I thought about using this:
[code]
var cols = $('th');
var colnames = [];
$.each(cols, function() {
colnames.push($(this).text());
});
[/code]
Thanks
This discussion has been closed.
Replies
Allan