I am needing to load in an external text document, break it into its individual lines, and display one of the lines. This is only the first step of a much larger project, but I am trying to get this to work before I proceed. I have tried several different things, and this is currently what I have.
function capFunction() {
jQuery.get("CSCI-Classes.txt", function(data) {
var group=data.split("/n");
document.getElementById("testDisplay").innerHTML = group[1];
});
}
When I run this function with a button press in my html file, nothing at all happens. Any JS wizards feeling helpful?