Acess parent from event

Template.body.events({

"change .fhSlider": function(event, template){
  event.stopPropagation();
 
  alert(event.target.parent.id);

}

});

–> Cannot read property ‘id’ of undefined

how can i access the parent’s Id?

thx in advance

Template.body.events({
  "change .fhSlider": function(event, template){
    event.stopPropagation();
 
    alert($(event.target).parent().attr("id"));
  }
});
2 Likes

_______________________thankyou!!!

2 Likes