Black Lives Matter. Please consider donating to Black Girls Code today.

Selecting row in table (not datatable)

I’m rendering an html table, with each row corresponding to an item in a python list. I want to select an item from the python list by clicking on a row in the html table. How can I do this with a callback?

hi! i’m not sure but… maybe add some js script to layout that will work with click event on html table and wrote id of a row (for example) into hidden div. will callback of that hidden div be triggered? if yes you can write your logic in that callback