$.get('example/myDoc.txt', function(data) { alert(data); });
//load the contents of myfile.txt into #myDiv $('#myDiv').load('myfolder/myfile.txt');