Created
November 13, 2014 12:26
-
-
Save lukeclifton/02184adbc095b2013392 to your computer and use it in GitHub Desktop.
rendered and helpers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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