I have been given a task to create a Python file that will take the data from an HTML table and export the data into an Excel sheet.
I have the Python file created and want to test it now. I have created the HTML with a sample table with data in it.
I have to create javascript to take the table data and send it to the Python file for processing. I am using a button to set the action.
Javascript
$("button").click(
function(){
//What should go here?
}
);
You probably don't need it but if you want to see the HTML I can post it as well, but it is really just a table and a button. Pretty straight forward. The Python file is pretty complex so I'd rather not post it. I just need to know how to get the table data and export it to the Python file for processing.
Thanks!
To clarify. I am hard-coding a table in HTML for testing purposes. A sample user should be able to go to the web page and view the table. Then have the option to export the table into an excel sheet to save on their computer. So I have created a button "Export" to start this process, but don't know how to get the hard-coded data to the python script