I'm looking for a good solution to:
- Select items in checkboxes on a web form (the checkbox would dynamically read the csv)
- Read from a XLS file
- Set which columns to be selected in options
- Put the data into a datagrid with multiple columns and headers
- Total the data on the final row.
Is there a simple solution to achieve this with jquery or some sort of web based spreadsheet? Any suggestions is appreciated.
<!DOCTYPE html>
<html>
<head>
<script src="media/js/jquery.js" type="text/javascript"></script>
<script src="media/js/jquery.dataTables.js" type="text/javascript"></script>
... js table code provided in answer ...
<link href="media/css/jquery.dataTables.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="demo"></div>
</body>
</html>