I know how to load external text from a .txt file using
and javascript
$(\"#text\").l
-
2021-01-06 10:15
To get the text from only a paragraph from the file, try this:
HTML:
JQuery:
var tempDiv = $('#tempDiv');
tempDiv.load("pathToFile/content.txt");
var html = tempDiv.find('#theParagraphId').html();
$('#text').html(html);