如何在没有提交的情况下选择excel文件后使用ajax显示excel读取文件?

How can i display excel read file using ajax after choosing an excel file without submit?

what i wanted to do is to display all data's inside the excel after choosing an excel file on input file without submitting any button, the datas inside it should automatically display in a certain div.

var file = new FormData();

file.append('file', $('#file').prop('files')[0]);

$.ajax({
  type: "POST",
  processData: false, // important 
  contentType: false, // important 
  url: 'get_excel.php',
  data: file,
  success: function (data) {

  }
});

here is my code on getting data of excel file.