I am trying with this JS:
        function refresh () { 
        $.ajax({
            url: window.location.href,
            success: function(data) {
                $('.torefreshdiv').html(data);
            }
        });
    }
But this is loading the whole page inside the div, but i would like to refresh only the '.torefreshdiv'.
I thank everyone who helps me in advance.