I am trying to import a local CSV file with headers into a local HTML file which will then be displayed as a table in a browser.
I havenβt studied HTML and JavaScript for a long time, so I donβt know much about importing and converting. I need advice or maybe a basic script describing the function I need. Explanations and tips are welcome!
This is an example csv file:
heading1,heading2,heading3,heading4,heading5 value1_1,value1_2,value1_3,value1_4,value1_5 value2_1,value2_2,value2_3,value2_4,value2_5 value3_1,value3_2,value3_3,value3_4,value3_5 value4_1,value4_2,value4_3,value4_4,value4_5 value5_1,value5_2,value5_3,value5_4,value5_5
This is how I want to display it:
http://jsfiddle.net/yekdkdLm
source share