title: refresh page with ajax jquery without use of reload function
body: <p>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,</p>
  
  <pre><code>$("#divSettings").html(this);
  </code></pre>
  
  <p>but, it's not working. What's the correct logic to get updated content in div.
  Thanks.</p>
  
  <p>Code:</p>
  
  <pre><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);
          }
       });
  }
  </code></pre>