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

Run JavaScript click event in Dash

Hi,

I would like to select a row like this:

So, I made a Dash equivalent with the tables. Only, to test if my js script file was loaded, an alert was triggerd. That worked but my function for the click event does not work. If I try the js script function in the console of the webbrowser, it works then. How can I fix this?

Or does someone has a better idea? I want to show the user a table and a possibility to click the row

Thanks in advance!