Скажите пожалуйста
Обновляю блок:
<script>
function show()
{
$.ajax({
url: "text.php",
cache: false,
success: function(html){
$("#Text").html(html);
}
});
}
$(document).ready(function(){
show();
setInterval('show()',1000);
});
</script>
<div id=Text>
</div>
Вставляю еще один код:
<script>
function show()
{
$.ajax({
url: "text2.php",
cache: false,
success: function(html){
$("#Text2").html(html);
}
});
}
$(document).ready(function(){
show();
setInterval('show()',5000);
});
</script>
<div id=Text2>
</div>
перестает работать все.
Возможно ли несколько блоков обновлять??