I'd like to make a function on click on tabes first cell in each row only. This is table built with plugin and this method does not work
$('#ecoTableTotal').find('tr').find('td').eq(0).click(function(){
console.log('click');
})
This one is working, but I need this to click only on the first cell. Is this possible?
$('#ecoTableTotal').on('click', 'tr' , function (event) {
console.log('click');
});
EDIT: Table is generated using Bootstrap table (http://wenzhixin.net.cn/p/bootstrap-table/docs/index.html). This question is also about the same problem with click function.