title: Create jQuery selectmenu from templated html
body: <p>If I create HTML with a jQuery-template and then immediately try to reference an item in that HTML to create a jQuery-UI element out of it it doesn't work:</p>
  
  <pre><code>$(".drop-down-container").loadTemplate(...)
  $("#directories").selectmenu();     
  </code></pre>
  
  <p>If I add a setTimeout and only call selectmenu after a delay, it works. Is there some handler I can use so I don't have to count on a delay?</p>
  
  <p>I read elsewhere to use class instead of id, but in my case that makes no difference. Unless I use a delay, class also doesn't work.</p>