Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

change event on <select> Meteor.js

I know that Meteor supports events and I have seen it in action on checkboxes, but I just wanted someone to be able clarify if we can hook change events in meteor on select dropdowns as like the following

 Template.templateName.events({
     'change select': function(e,t){
        // do whatever.......
     }
 });

I am trying to do this using Meteor and it doesn't seem to be firing when I change the value in the select box. However when I use jQuery to change things then it works fine.

like image 643
koramaiku Avatar asked Jun 13 '13 06:06

koramaiku


1 Answers

Your code should work, it works fine for me.

Though I think events only take one eventMap-argument, not two. What would the "t" argument be?

like image 114
Kristoffer K Avatar answered Sep 28 '22 18:09

Kristoffer K