Skip to content

Instantly share code, notes, and snippets.

@lukeclifton
Created November 13, 2014 12:26
Show Gist options
  • Save lukeclifton/02184adbc095b2013392 to your computer and use it in GitHub Desktop.
Save lukeclifton/02184adbc095b2013392 to your computer and use it in GitHub Desktop.
rendered and helpers
Template.jobCreate.rendered = function() {
$("select[name='customerId']" ).change(function(e) {
var customerId = $(this).val();
});
};
Template.jobCreate.helpers({
customer: function() {
return Customers.findOne({_id: customerId});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment