refresh page with ajax jquery without use of reload function
        Posted  
        
            by 
                Ronak Patel
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Ronak Patel
        
        
        
        Published on 2013-10-28T21:49:52Z
        Indexed on 
            2013/10/28
            21:53 UTC
        
        
        Read the original article
        Hit count: 256
        
I am performing delete records by using jquery ajax in php. I want to refresh that content without the use of location.reload() function. I tried this,
$("#divSettings").html(this);
but, it's not working. What's the correct logic to get updated content in div. Thanks.
Code:
function deletePoll(postId){
    $.ajax({
        type: "POST",
        url: "../internal_request/ir_display_polls.php",
        data: {
          postId: postId
        },
        success: function(result) {
            location.reload();
            //$("#divSettings").html(this);
        }
     });
}
© Stack Overflow or respective owner