Skip to content Skip to sidebar Skip to footer

How To Remove Data-target And Data-toggle From Child Elements Or Disable Elements From Triggering The Event?

HTML:
{{text}}
).on('click', function (ev) { ev.stopPropagation(); });

For elements in a meteor template, you do something like this (replace yourTemplate with your template name),

Template.yourTemplate.events({
    'click .div', function (ev, template) {
        ev.stopPropagation();
    }
});

See the JSFiddle

Post a Comment for "How To Remove Data-target And Data-toggle From Child Elements Or Disable Elements From Triggering The Event?"