If that doesn’t work, then either your selector is not specific enough, or the click event is being triggered on an ancestor or child element. Can you paste an HTML snippet of one of the inputs you’re trying to capture click events for?
Are you using explicit imports? If so, it’s possible you’ve imported the .html file but not the .js file. Are there other event handlers for that template that are working?
I’m not using any html import or special imports. Is just this selector is not working… Others are working, but as I said, if I do it with jquery it works
My question is, should it work?
Yes, it should work. I wouldn’t even call it a particularly complex selector. Which is why I’m thinking there must be a typo or something. If you post your template I’ll be happy to try it out locally to see if I can reproduce your problem.
When I try to bind it to the event ‘click .wrapper input’ it doesn’t work
It should be because its inside another template, but making it to ‘click input’ it works.
I think Blaze may automatically scope event handlers somehow, and since the wrapper div doesn’t exist in the input template, you can’t bind events to it for that template.