after load() styles are lost
hi,
i am loading some content and placing it in a div. the content contains several different form elements, unfortunately jquery mobile doesn't update the styles. i have seen tons of articles and posts about that issues and none of them seem to help my case. what to do?
this is some of my html
- <!DOCTYPE html>
- <html>
- <head>
- <title>test</title>
- <link rel="stylesheet" href="jquery.mobile-1.3.0/jquery.mobile-1.3.0.css">
- <script src="http://code.jquery.com/jquery-1.8.2.js"></script>
- <script src="jquery.mobile-1.3.0/jquery.mobile-1.3.0.js"></script>
- <script>
- $(document).ready(function() {
- $("a.link1").click(function() {
- $("#here").load("fall2.html");
- $("#here").trigger("create");
- });
- });
- </script>
- </head>
- <body>
- <div data-role="page">
- <div data-role="panel" data-position="left" data-display="push" id="mypanel">
- <div class="ui-bar ui-bar-a">Topic</div>
- <div>
- <ul data-role="listview">
- <li><a class="link1" href="#fall_1">Fall 1</a></li>
- </ul>
- </div>
- </div>
- <div data-role="header" id="p_header">
- <h1>Test</h1>
- <a href="#mypanel" data-icon="bars" data-iconpos="notext">Navigation</a>
- </div>
- <div data-role="content" id="here" class="ui-grid-a">
- <div class="ui-block-a">
- text
- </div>
- <div class="ui-block-b">
- <fieldset data-role="controlgroup">
- <input type="radio" name="radio-choice-1" id="radio-choice-1" value="choice-1" checked="checked">
- <label for="radio-choice-1">1</label>
- <input type="radio" name="radio-choice-1" id="radio-choice-2" value="choice-2">
- <label for="radio-choice-2">2</label>
- <input type="radio" name="radio-choice-1" id="radio-choice-3" value="choice-3">
- <label for="radio-choice-3">3</label>
- <input type="radio" name="radio-choice-1" id="radio-choice-4" value="choice-4">
- <label for="radio-choice-4">4</label>
- </fieldset>
- </div>
- </div>
- </div>
- </body>
- </html>
what's wrong?
thank you for the help