I'm developing and application with python flask and I want to send the return value of a Javascript function(an array) to a python function. Given below is the code.
Javascript
<script>
function getVals(){
a = [ab, cd];
return a;
}
</script>
HTML
<a href="https://stackoverflow.com/end_stu_live_session">End This</a>
Python
@app.route('/end_stu_live_session')
def end_stu_live_session():
return render_template('stu_dashboard.html')
I want the array from the Javascript function getVals() to be passed to the python function end_stu_live_session. Any help is highly appreciated. Thanks.
