updateTpl.onRendered(function () {
Tracker.afterFlush({
var dob = $('[name="dob"]');
dob................// config;
})
});
But if you also need the data, you can set up a template level subscription within onCreated
updateTpl.onCreated(function () {
var template = this;
// first subscribe
template.subscribe('dobDataPublication', function() {
// wait for the subsciption to be ready
Tracker.afterFlush({
// wait for the data to be rendered and template flush cycle get completed
var dob = $('[name="dob"]');
dob................// config;
})
})
});