Skip to content
Advertisement

JS event listner on int-only CSS class

I have the following problem:

I have the following code in PHP:

JavaScript

So the class of is: details-control-1, details-control-2 and so on

But it doesn’t work. If I use words-only for the details-control class, it works fine.

The goal is to create a table and trigger a JS action when a row is clicked.

Thank you for your help.

Advertisement

Answer

Please use a class and the power of jQuery

JavaScript
JavaScript
JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement