내 HTML이APPEND 데이터로드 문제
<div id="rsContainer">
<table id="rsTable"><!-- DATA HERE --></table>
</div>
처럼 내 자바 스크립트는이 벌금과 작동이
$('#UpdateAll').click(function() {
$('#status').fadeIn('500').text('Loading... This may take a while.');
$.ajax({
type: 'post',
url: 'func.php',
data: 'action=updateAll',
success: function(response) {
$('#response').fadeOut('500').fadeIn('500').append(response);
$('#rsTable').slideUp('1000').load('index.php #rsTable', function() {
$(this).appendTo('#rsContainer').slideDown('1000');
});
$('#status').fadeOut('500').empty();
}
});
});
비슷하지만, HTML을 appening하면이
<div id="rsContainer">
<table id="rsTable">
<table id="rsTable"><!--data--></table>
</table>
</div>
처럼 보인다 후
보시다시피 실제로 추가 할 수 있습니다. rsTable 어떻게 유지할 수 있습니까? 원래 구조?
감사합니다.
그것을 추가하기 전에 응답의 값을 검사하려고합니다. 그것은 두 개의 rsTable 테이블을 포함하고 있습니까? –