Sample code: --------------------Start Code------------------ `
<tr>
<th>Year</th>
<th>Month</th>
<th>Day</th>
</tr>
<tr>
<td>2000</td>
<td>January</td>
<td>24</td>
</tr>
</table>
<button type="submit" class="x" formaction="/" formtarget="_blank">send data</button>
`
--------------------End code------------------ I want the user to select a row in the table. And once they select the row the data from the row is sent to a route in my flask application.
Basically the whole row needs to be clickable so maybe the onclick attribute might work?
Example of flask route:
@app.route('/',methods=['POST','DELETE','GET']) def table(): return render_template('table.html')
Thanks so much!