title: jQuery datetimepicker not work on first time
body: <p>I have a dynamic time field in which I used <a href="https://github.com/xdan/datetimepicker" rel="nofollow"><code>jQuery Datetime picker</code></a>.</p>
  
  <p>For dynamic initialization I used this code:</p>
  
  <pre><code> $("body").on("focus",".time-input",function(){
          $(this).datetimepicker();
   });
  </code></pre>
  
  <p>But it works when I focus for second time.</p>
  
  <p>A working demo would be great, if possible.</p>