: 귀하의 경우
당신이
$('#A').load('pageX.php #B');
또는이 작동 같은 id's
뭔가 중복 제거해야 이 일을 지금 다시하려면, 나는 이렇게 할 것입니다.
HTML
<html>
<body>
<div class="divToRefresh"></div>
</body>
</html>
자바 스크립트 (JQuery와)
<script>
$(document).ready(function(e) {
$.refreshDiv = function(arg){
var d = {someVariable_you_can_send:arg}
$.ajax({
url:'url_to_div_content',
data:d,
type:"POST"}).done(function(result){
$('.divToRefresh').html(result);
});
};
//////////call this for the first time//////////
$.refreshDiv('some value');
//////////////////////////// and then refresh it after a certain interval if you need to
window.setInterval(function(){
$.refreshDiv('some value');
}, 1000*60*60*60);
});
</script>
당신은 ID의의를 반복 할 수 없습니다, 그 문제를 해결! – tymeJV