Suppose I have an bootgrid formatters like this:
$(document).ready(function () {
//bootgrid
$("#bootgrid-issues").bootgrid({
...
formatters: {
product: function (column, row){
return "<p class='per_online_issue_id'>" + row.product["product_name"] +"</p>";
},
category: function (column, row){
return "<p>" + row.category["category_name"] +"</p>";
},
},
});
And I want it to print an "hello" if the per_online_issue_id
element clicked.
But it doesn't work as expected. Have I missed something? Here is how I do this, I wrote it right after the formatters
.
$('.per_online_issue_id').click(function () {
console.log("hello")
});