When attempting to access the text content of an ID, I have tried 2 different ways -
var username = requests.query.username;
var username = $('#username').text();
The first attempt returned undefined, and the second attempt returned an empty string. Of course when I try and push this to my SQL server, it returns an error because it is a null value.
I thought about using JSDOM to insert the table into the html code and referencing the table values in the javascript, but I could not find any resources to do so.
Additionally, let it be known I am using NodeJS and that my HTML pages are separate from the JS file.