title: Load JQM DateBox Plugin with JQuery.load
body: <p>I am trying to implement the JQM DateBox Plugin (<a href="http://dev.jtsage.com/jQM-DateBox2/" rel="nofollow noreferrer">http://dev.jtsage.com/jQM-DateBox2/</a>) into my Website.
  I declare the HTML code of the date picker in a separate HTML file "page2.html" and load it into a div in the "index.html".
  Putting the code of page2.html directly into the div shows the time picker field properly:
  <img src="https://i.stack.imgur.com/aHrN9.png" alt="enter image description here"></p>
  
  <p>If loaded via JQuery load() and enhanced, the browser shows something like a date picker within the time picker input field.</p>
  
  <p><img src="https://i.stack.imgur.com/LyLop.png" alt="Strange appearance of time picker"></p>
  
  <p>Clicking on the button on the right side opens the time picker though. I use the desktop version of Chrome, in Firefox this problem doesn't appear.</p>
  
  <p>page2.html:</p>
  
  <pre><code>&lt;div data-role="fieldcontain"&gt;
      &lt;label for="deftimeflip"&gt;Some Date&lt;/label&gt;&lt;input name="deftimeflip" type="date" data-role="datebox" id="deftimeflip" data-options='{"mode": "timeflipbox"}' /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>index.html:</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function() {
      $('#content').load("page2.html", function(event) {
          $('#content').trigger("create");    // enhance JQM elements
  
      });
  });
  &lt;/script&gt;
  
  &lt;body&gt;
      &lt;div data-role="page" id="mainPage" data-theme="none"&gt;
          &lt;div id="content" style="width:30%;"&gt;
              &lt;div data-role="fieldcontain"&gt;
                  &lt;label for="deftimeflip"&gt;Some Date&lt;/label&gt;&lt;input name="deftimeflip" type="date" data-role="datebox" id="deftimeflip" data-options='{"mode": "timeflipbox"}' /&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Without enhancing, the browser shows only the date picker:</p>
  
  <p><img src="https://i.stack.imgur.com/TfUxE.png" alt="enter image description here"></p>
  
  <p>I use the "latest" core and flipbox of the plugin.</p>
  
  <p>Hope anybody can help me out.</p>