css problem with Column Toggle

css problem with Column Toggle

Hello,

I'm trying to dynamically load content of the table on button click,  in a.html i have:
  1.  
  2. <!doctype html>
  3. <html lang="en">
  4.     <head>
  5.         <meta charset="utf-8">
  6.         <meta name="viewport" content="width=device-width, initial-scale=1">
  7.         <title>table-columntoggle demo</title>
  8.         <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css">
  9.         <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
  10.         <script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
  11.         <script type="text/javascript">
  12.             function test() {
  13.                 $('#myDiv').load('b.html', function() {
  14.                     $('#myDiv').trigger("create");
  15.                 });
  16.             }
  17.         </script>
  18.     </head>
  19.     <body>

  20.         <div id="#myDiv">
  21.         </div>
  22.         <input type="button" onclick="test()"/>
  23.     </body>
  24. </html>
and in b.html:
  1. <table data-role="table" id="table-column-toggle" data-mode="columntoggle" class="ui-responsive table-stroke">
  2.       <thead>
  3.         <tr>
  4.           <th data-priority="2">Rank</th>
  5.           <th>Movie Title</th>
  6.           <th data-priority="3">Year</th>
  7.           <th data-priority="1"><abbr title="Rotten Tomato Rating">Rating</abbr></th>
  8.           <th data-priority="5">Reviews</th>
  9.         </tr>
  10.       </thead>
  11.       <tbody>
  12.         <tr>
  13.           <th>1</th>
  14.           <td><a href="http://en.wikipedia.org/wiki/Citizen_Kane" data-rel="external">Citizen Kane</a></td>
  15.           <td>1941</td>
  16.           <td>100%</td>
  17.           <td>74</td>
  18.         </tr>
  19.       </tbody>
  20.     </table>
but when i click on the columns button the popup looks weird, namely there are spaces there. What can be done to overcome issue?


Thanks in advance :)