How to add handler for click event on anchor tag in a column of Datatable ?

How to add handler for click event on anchor tag in a column of Datatable ?

kumarnishant342kumarnishant342 Posts: 7Questions: 4Answers: 0
edited February 2019 in Free community support

I have a DataTable. Because of performance issues, I am implementing server-side pagination. Now in 1 column there is an anchor element: <a class="btn btn-sm btn-success activate_illustration" style="padding:5px 10px;" data-path="/v0/dashboard/activate_illustration/7901-tiger">Clear flag &amp; activate</a> in all rows.

I have to add handler for click event for each anchor element. How to do that ?

When the pagination was client-side, entire table was rendered and then handlers were attached to all anchor elements using this code:
$(".activate_illustration").click(function(){ ... });

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.