How do I load the content of a file into a variable instead of the DOM using jQuery .load() method?
.load()
For example,
$(\"#logList\").load(\"logF
load() is just a shortcut for $.get that atuomagically inserts the content into a DOM element, so do:
load()
$.get
$.get("logFile", function(response) { var logfile = response; });