Metero event this.children


#1

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?


#2

Hi @godo15!

Something like this:

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