I have a shopping cart page. I am using ajax function to add products to cart. so my page will not refresh. But after added to cart , i need to display you have n number of items in your cat. It is working fine if i refresh my page. i need to do that without refrsh my page i have write this
<script>
$(document).ready(function(){
$("#addtocartbutton").click(function(){
$("#cartdiv").refresh();
});
});
</script>
but not refrshing that div. please helm me friends