here is my code: basically what im trying to do is , when click event is triggered add a class using jquery to the current target. instead it is throwing undefined.
Template.section3.events({
"click a.th":function(e,tmp){
console.log(e.currentTarget);
e.currentTarget.addClass("selected");
}
})
$(e.currentTarget).addClass("selected");e.currentTargetis the dom element, don't had the methodaddClass()