javascript Refresh Div.
Posted
by
Tom
on Stack Overflow
See other posts from Stack Overflow
or by Tom
Published on 2011-02-27T15:05:33Z
Indexed on
2011/02/27
15:24 UTC
Read the original article
Hit count: 135
JavaScript
|div
Hi, I am using this code to refresh the data inside of the div:
<script>
$(function() {
$("#refresh").click(function() {
$("#new").load("/new.php")
})
})
</script>
Except it loads the who page inside of the div, instead of just the information that is inside of the div.
How do I make it refresh only the data that is inside of the div? Is there a way of doing it other than putting the information for that div in a seperate page?
© Stack Overflow or respective owner