javascript Refresh Div.
- by Tom
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?