Input text not rendering with Windows Phone 8.1

Input text not rendering with Windows Phone 8.1

Hi.

I am currently developing a hybrid Cordova app that is using jQuery Mobile for UI. Right now, I have an issue with jQuery Mobile that it does not behave correctly on Windows Phone 8.1. Mine version of JQM is 1.4.5 and I am using jQuery 2.1.3. If I include the reference to the jquery.mobile-1.4.5.js, then the input text would not be rendered at all. Without loading the mobile script, the app loads the input field correctly. The app is working correctly on both Android and iOS, and per the support page, JQM 1.4.5 is supported for Windows Phone 8 and 8.1 is basically having more supports than 8 so I assumed it should work correctly.

I do not know what I did wrong but the problem seems like from JQM. I've included my code below.

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <meta charset="utf-8" />
  5.     <title>TestCordovaApp</title>

  6.     <!-- TestCordovaApp references -->
  7.     <link href="css/index.css" rel="stylesheet" />
  8.     <link rel="stylesheet" href="Content/jquery.mobile-1.4.5.css" />
  9.     <!-- jQuery references -->
  10.     <script src="scripts/jquery-2.1.3.min.js"></script>
  11.     <!--<script src="scripts/jquery.mobile-1.4.5.js"></script>-->  <!--This causes the issue-->
  12. </head>
  13. <body>        
  14.     <div data-role="page" id="loginPage" data-theme="b" data-corners="false">
  15.         <div data-role="header"><h1>Asset Tracking Login</h1></div>
  16.         <div data-role="content" class="ui-content">
  17.             <input type="text" name="loginId" id="loginId" value="">
  18.             
  19.             <a class="ui-btn" id="loginButton" onclick="" data-corners="false">Log in</a>
  20.             
  21.             <div data-role="popup" id="dialog" class="ui-content" data-corners="false">
  22.                 <a href="#" data-rel="back" data-role="button" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
  23.                 <div id="dialogContent"></div>
  24.             </div>
  25.         </div>       
  26.     </div>-->
  27.     <!-- Cordova reference, this is added to your app when it's built. -->
  28.     <script src="cordova.js"></script>
  29.     <script src="scripts/platformOverrides.js"></script>

  30.     <script src="scripts/index.js"></script>
  31. </body>
  32. </html>

Thanks.