title: How to pull the data context from a view in Meteor using Blaze.getData()
body: <p>I have a select input in one of my Meteor templates which has three pieces of data associated with each select option. I am trying to send all three pieces of data (as an object) to a new template that is rendered via the Blaze API on the 'change' event triggered after the user's selection. I am under the impression I can use the Blaze.getData method to do this, but it doesn't seem to be working for me. I was wondering if anyone has any experience using this method and might be able to help me troubleshoot. </p>
  
  <p>I have a MeteorPad set up with an example of what I am trying to do here:
  <a href="http://meteorpad.com/pad/69XGm5nWPutg8an7T/Select%20Item" rel="nofollow">http://meteorpad.com/pad/69XGm5nWPutg8an7T/Select%20Item</a></p>
  
  <p>Also, here is the relevant 'change' event code:</p>
  
  <pre><code>Template.selectItem.events({
    'change .select_item': function(event) {
      event.preventDefault();
  
      var view = Blaze.getView(event.target);
      console.log(view); // me debugging
      var item = Blaze.getData(view);
      console.log(item); // me debugging
      Blaze.renderWithData(Template.selectedResults, item, document.getElementById('results'));
    }
  });
  </code></pre>