0

I am fetching the data from CSV file using Jquery CSV. Below code returns an object

var check = $.get('../../../data/testers.csv');  //Fetches all the data and stores in variable
  console.log(Object.keys(check));               //Here it tries to get all the keys, so I know what to call to get the required data
  console.log(check);                            //Displays everything

This is the output of the code shown above:

Output

As we see my data is in responseText: How can I fetch the data? I tried check.responseText, but it's not working. (As responseText is not the key, I am not supposed to get the value. Yet was just giving a try)

How to get the data (responseText)?

Dhaval Jardosh
  • 7,151
  • 5
  • 27
  • 69

0 Answers0