title: how to get multiple select(ed) list values from template?
body: <p>Trying to figure out a way to this, here's the code, in a template I have:</p>
  
  <pre><code>&lt;template name="main"&gt;
    &lt;select name="foo" multiple&gt;
     {{each users}}
      {{&gt;userinfo}}
     {{/each}}
    &lt;/select&gt;
    &lt;button type="submit" value="Submit"&gt;Add to team&lt;/button&gt;
  &lt;/template&gt;
  
  &lt;template name="userinfo"&gt;
    &lt;option value={{_id}}&gt;{{username}}&lt;/option&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p>So that creates a multiple selectable list, but how in my Meteor JS code do I get these multiple values and do something with them? I know I'm probably going to be doing something in Template.main.events but I'm stuck there, I know in pure JQuery I'd do something like: </p>
  
  <pre><code>var users = [];
  $('#foo :selected').each(function(i, selected){
    users[i] = $(selected).text();
  });
  </code></pre>
  
  <p>Just not sure how to implement this in the Meteor events</p>