I am trying to read a text file using jquery, like this:
// LOAD file and split line by line and append divs $.get(\'myFile.txt\', function(data) { v
this one is working
$.get('1.txt', function(data) { //var fileDom = $(data); var lines = data.split("\n"); $.each(lines, function(n, elem) { $('#myContainer').append('' + elem + ''); }); });