Y
yeti349
Hi, I have the following data object. Each string in the "lib" element
represents a new record. I need to display each of these records in
html table format so I can be able to sort on each column. How can I
get each string from each element into its own row, or is there a
better way to populate this data object? Thanks.
var jsData = new Array();
for (var i = 0; i < 4; i++)
{
jsData[jsData.length] = {lib: "string1,string2,string3,string4", id:
"num1,num2,num3,num4", com: "string1,string2,string3,string4"};
}
the html table output should look like:
string1 | num1 | string1
string2 | num2 | string2
string3 | num3 | string3
string4 | num4 | string4
represents a new record. I need to display each of these records in
html table format so I can be able to sort on each column. How can I
get each string from each element into its own row, or is there a
better way to populate this data object? Thanks.
var jsData = new Array();
for (var i = 0; i < 4; i++)
{
jsData[jsData.length] = {lib: "string1,string2,string3,string4", id:
"num1,num2,num3,num4", com: "string1,string2,string3,string4"};
}
the html table output should look like:
string1 | num1 | string1
string2 | num2 | string2
string3 | num3 | string3
string4 | num4 | string4