I've a page with this format:
<div id="index" data-role="page">
<div id="container"></div>
</div>
And I load into #container the content of the page like this:
<script type="text/javascript">
$(document).ready(function(){
$('#container').load("pages/content.html");
});
</script>
And "pages/content.html" has this content:
<div data-role="content">
<a href="pages/calendar.html" data-role="button">Calendar</a>
</div>
The problem is that the button does not come with the style of jquery mobile .. I tried to do. trigger ('create') but without success.
Any Suggestions? Thank you!