So when I try to read the variable on complete with papaparse i get the following error: TypeError: wpcc_results is undefined.
I really cannot see what is wrong with my code here:
$('.wpcc_gen_box_form').submit(function(event) {
// stop the form from submitting the normal way and refreshing the page
event.preventDefault();
$('#wpcc_csv_file').parse({
complete: function(wpcc_results) {
console.log(wpcc_results.data);
}
});
});
I think fresh eyes would really help here.
I appreciate any help.