Metero event this.children

With jQuery I have the possibility to target children elements of the event target:

  $('.menu').click(function() {},
    function() {
      $(this).children('.sub-menu').slideDown(200);
    }
  );

Is it possible to do this with meteor template events as well?

Hi @godo15!

Something like this:

Template.Foo.events({
  'click .menu': function (e, t) {
     t.$(e.currentTarget).children('.sub-menu').slideDown(200);
  }
});
2 Likes