You can easily access the item that was clicked:
'click .something': function(e, t) {
$(e.target);
}
Now, if you want the data stored in a row to be clicked, you can easily make it accessible using datathe HTML parameters
{{#each items}}
<tr data-name="{{name}}" data-id="{{_id}}">...</tr>
{{/each}}
Then extract it from the line:
'click .something': function(e, t) {
alert($(e.target).closest('tr').data('name'));
}
source
share