I am writing an canJS application and so far successful in handling the click event for an html table. Using the following code.
'table td click':function(el,event){
console.log('clicked ',el.text());
}
- How to listen to only first column click for the table instead of whole td?
- How to retrieve particular column's data from the td (el)?
Try this:
Possible answer of 2nd question, first handle whole tr: