在下面的代码,而试图改变动态geneted div的内部HTML,内HTML dosent变化。Jquery的:添加内部HTML动态生成的div
$.ajax({
url: 'xxx.xxx',
beforeSend: function() {
$('#scroll_items').append('<div class="list_item more_content" align="center"><img src="loader.gif"></div>');
},
success: function(data) {
$('#scroll_items div:last').html("hai to all");
}
});
HTML部分
<div id="scroll_items">
<div class="list_item1">
Scroll beyond this container to automatically load more content
</div>
<div class="list_item">
[ List Item 2 ]
</div>
</div>
</div>
,你能否告诉我们在html? – Adil 2012-07-21 18:49:56
你是否确定成功功能甚至解雇? – prodigitalson 2012-07-21 18:50:25
我不认为成功功能的发射。 – Shreedhar 2012-07-21 18:51:44