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

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
This discussion has been closed.
Answers
Hi Costas,
Have a read over the Q. My events don't work on the second page FAQ. Its basically the same thing.
Allan
Hello Allan,
Thanks a lot for ur fast reply.
But I cant see what i need to do to make an <a> element (hyperlink) in the tables cell clickable to call an event from the given example.
The above does not work.
Change it to be a delegated event like the FAQ says:
Allan