0
我有一些问题的家伙。 我必须用.html()jquery函数删除我的内容。一切工作正常,但我的iphone phonegap应用程序的页脚上。但是当我直接在我的html代码中评论或删除我的内容时,一切正常,我的应用程序的页脚留在他的位置。请帮帮我。 这里是我的代码片段:jquery .html()删除html内容
<script id="div_mainheader" type="text/html">
<div id="check_place">
<div id="idcheckin" style="width: 210px; position: relative;" align="left" class="mystatus2 clickable" onclick='showPartnersNearYouPopUp();'>
<div id="leave" style="top: 81px;"><img src="graphics/picker.png" style="margin-left: 5px; margin-top: 5px; margin-bottom: -1px;">
CHECK A PLACE ...
</div>
</div>
<div id="idbtleave" style="position: absolute; top: 81px; left: 270px;">
<button id="btleave" class="checkout-button" type="button">{{Localize.quit}}</button>
</div>
</div>
</script>
这是我打电话给抹去我的内容功能:
$('#check_place').html('');
我也试过document.getElementById('check_place').innerrHTML = '';
但它以.html同样的事情()
请帮帮我。非常感谢。
你可以阅读一下:http://api.jquery.com/empty/ –
感谢名单李四史密斯的回答。 我试过$('#check_place')。empty();但结果是一样的。 :( –