<link rel="stylesheet" href="https://apps.bdimg.com/libs/jquerymobile/1.4.2/jquery.mobile.min.css">
<script src="https://apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="https://apps.bdimg.com/libs/jquerymobile/1.4.2/jquery.mobile.min.js"></script>
$(document).on("pagebeforecreate",function(event){
$(".manipulate").attr("data-inset","true");
<div data-role="page" id="pageone">
<div data-role="content">
<p>In this example, we style the list below as an inset list during the pagebeforecraete event.</p>
<ul class="manipulate" data-role="listview">