Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

Hyperlink on columns does not call click event using jquery on class

$
0
0

Hello,

I have a table which i add a custom hyperlink on a column which then i expect to be clicked and fire a $('.myClass').on('click',function(e){}); call.

this is how i add the hyperlink

"aTargets": [7],
                    "mData": null,
                    "mRender": function (data, type, full) {

                        return '<a href="#" value="'+data.id+'" class="myClass"> Complete </a>';
                    }

Once clicked i would like to fire up a ajax request and reload the data on the table.

Please feel free to suggest any other suggestions on that.

Thanks a lot

Regards
Costas


Viewing all articles
Browse latest Browse all 2364

Trending Articles