I want jquery or javascript code to get the data from excel and add them to array in jquery. Example: In column "A" there are names, Kasun Nirmala Gemba John
And I want to add then to Var names=['Kasun', 'Nirmala','Gemba','John']
This is what I have tried. In this I get all data of excel to #res div. But I want to get them all to an array
alasql('SELECT * into html("#res") from xlsx("excel.xlsx")');
<script type="text/javascript" src="js/alasql.min.js"></script>
<script type="text/javascript" src="js/xlsx.core.min.js"></script>
<div id="res"></div>