title: Dynamically Create Widgets in DOM
body: <p>I'm using jQuery mobile 1 alpha 1.</p>
  
  <p>To create a text input for instance in jQuery mobile you add to your HTML</p>
  
  <pre><code>&lt;div data-role='fieldcontain'&gt;
  &lt;label for='name'&gt;Text Input:&lt;/label&gt;
  &lt;input type='text' name='name' id='name' value=''  /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Supposing you assign the above HTML code to a variable <code>$textinput</code> and type <code>$("#someid").append($textinput);</code> then the problem is that the text input appears but its not themed properly. My guess is that some Javascript runs on page load that adds the correct classes for CSS purposes. This Javascript does not run when I add the HTML directly into the DOM.</p>
  
  <p>What do I do so that the correct Javascript runs when I dynamically add widgets to my DOM?</p>