How to load the content of a file into variable using jquery load method?

Viewed 33981

How do I load the content of a file into a variable instead of the DOM using jQuery .load() method?

For example,

$("#logList").load("logFile", function(response){ });

Instead of loading the file into the #logList element of the DOM, I would like it to load into a variable.

2 Answers
Related