Acess parent from event


#1

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


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

#3

_______________________thankyou!!!