Search code examples
javascriptjquerymeteormeteor-blaze

Meteor event selector for a given attribute


This Meteor template event needs to fire only in the input element which has the attribute name=abc, Is there a way to do this?

'keyup input[name-attribute is abc??]': function (evt, template) {

};

Solution

  • It's easier than you guessed:

    'keyup input[name=abc]': function (evt, template) {
    
    };