Meteor template.onRender called before DOM completion -


once user log in, 'teacher' template rendered. however, it's rendered before dom completion, means $ '#datetimepicker' doesn't work.

body     if currentuser         +student         +teacher     else         +account 

code in meteor.isclient:

template['teacher'].onrendered !->     $ '#datetimepicker' .datetimepicker! 

thanks in advance!


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -