点击时,下面的搜索按钮不会将控件带到id为resultLogBus的div标签?
<a href="#resultLogBus" class="ui-btn" onclick="getBusTime();" >Search </a>
<fieldset class="ui-field-contain" data-role="controlgroup">
<a href="#myPopupDialog2" data-rel="popup" data-position-to="window" data-transition="none" class="ui-btn ui-corner-all ui-shadow ui-btn-inline" onclick="getUserPost();" >View Post</a>
<div id="resultLogBus" >
<h5>Bus time will be displayed here real time once you select the above filters and click search </h5>
</div>
</fieldset>
答案 0 :(得分:0)
您需要在元素前添加<a name="resultLogBus"></a>
。所以你的代码看起来像
<a name="resultLogBus"></a>
<div id="resultLogBus" >
<h5>Bus time will be displayed here real time once you select the above filters and click search </h5>
</div>
这是demo