Problem CSS when using Jquery

Problem CSS when using Jquery

Hi, 

I have a really strange error.  When I use some Jquery function, the css doesn't works. I give you an exemple : 

The first list looks good (l.16), but the second using Jquery doesn't works (l.36).

 Thanks !
  1. <!DOCTYPE html> 
  2. <html>
  3. <head>
  4. <title>Page Title</title>
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.css" />
  7. <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
  8. <script src="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.js"></script>
  9. </head>
  10. <body>
  11. <div data-role="page">
  12. <div data-role="header"><h1>Page Title</h1></div>
  13. <div data-role="content" id="content_">
  14.  
  15. <ul data-role="listview" data-divider-theme="b" data-inset="true" id="ul">
  16.             <li data-role="list-divider" role="heading">
  17.                 Divider
  18.             </li>
  19.             <li data-theme="c">
  20.                 <a href="#page1" data-transition="slide">
  21.                     title 1
  22.                 </a>
  23.             </li>
  24.             <li data-theme="c" id="li2">
  25.                 <a href="#page1" data-transition="slide">
  26.                     title 2
  27.                 </a>
  28.             </li>
  29.         </ul> 
  30. </div>
  31.    
  32.    <script type="text/javascript">
  33. $(function(){
  34. $('<ul data-role="listview" data-divider-theme="b" data-inset="true"><li data-theme="c" ><a href="#page1" data-transition="slide">new title</a></li></ul>')
  35. .insertAfter('#ul');
  36. });
  37.     </script>

  38. </div><!-- /page -->

  39. </body>
  40. </html>