jquery accept only excel file

JavaScript
<input type="file" ID="fileSelect" accept=".xlsx, .xls, .csv"/><input id="fileSelect" type="file" accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" />  <input type="file" id="img" name="img" accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel">
Source

Also in JavaScript: