Innerhtml : "dmx-on:click" does not work

Hi All,

For many reasons, i had to generate a list of cards with a repeat, and i populate the innerhtml property of each card with html code like this:
image
I want to set the value of a variable “emp_current” when i click on a card. Each card has ti’s own value.
But dmx-on:click does not work. Have an idea ?

Many thank’s !

Found a workaround.
This was not the best way.
I worked on my API to get the rigth index and process it in wappler.
@Teodor : can you classify this post as solved ?

1 Like