data-role style lost after .load()
hello,
after a reload of a div by using .load() the data-role mobile style is lost :-(
i use this code:
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Untitled Document</title>
- <link href="../js/jquery.mobile-1.0a3/jquery.mobile-1.0a3.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="../js/jquery.js"></script>
- <script type="text/javascript" src="../js/jquery.mobile-1.0a3/jquery.mobile-1.0a3.js"></script>
- </head>
- <body>
- <div data-role="page">
-
- <div data-role="content">
-
- <div id="mitte" style="width:500px; height:500px; margin:0 auto; border:5px solid black;">
-
-
-
- </div>
-
- <a id="laden" data-role="button">laden</a>
-
- <script type="text/javascript">
- $('#laden').click(function() {
- $('#mitte').load('test.php');
- });
-
- </script>
-
- </div>
-
- </div>
-
-
- </body>
- </html>
and this is the sorce of test.php
- <div data-role="collapsible" data-collapsed="true">
- <h3>test</h3>
- text....
- </div>
anybody an idea?