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.