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.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"));
}
});
_______________________thankyou!!!