Skip to content
Advertisement

Print out Javascript array in table

I have this array:

JavaScript

and I would like to print the entire array out as a html table. How would I accomplish this?

I tried this but could only get the final name the print:

JavaScript

Advertisement

Answer

Using jQuery you can do:

JavaScript

jsFiddle: http://jsfiddle.net/davidbuzatto/aDX7E/

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement