Reading A CSV File Using HTML5 And jQuery
In this blog, we will learn how to read a CSV file from the client-side and display its contents in an Html table by making use of the FileReader() method in HTML5 & Jquery.
First, we will create a file upload button, HTML table, which is hidden first and an input button, which on clicking calls the function to export CSV data to the table.
- <input type="file" id="csvfile" />
- <input type="button" id="viewfile" value="Export To Table" onclick="ExportToTable()" />
- <br />
- <br />
- <table id="csvtable">
- <thead>
- <tr>
- <th>
- Name
- </th>
- <th>
- Job
- </th>
- <th>
- City
- </th>
- <th>
- State
- </th>
- </tr>
- </thead>
- <tbody></tbody>
- </table>


Rohit SharmaPosted Sep 23, 2019, 6:00 AM
My csv file size is 111 mb, while I am uploading it, Browser got crashed. Any Lead or suggestion.
Aruljothy SundaramoorthyPosted May 1, 2017, 4:29 AM
Awesome Bro....... and i want to know about how to view the CSV file using XML