title: ajax success reload div content not working
body: <p>There are many questions on this but no answer seems to be easy working.</p>
  
  <p>I have a <code>&lt;form&gt;</code>with delete icons on every row. Now <code>.on('click',functoin()..</code>I have an ajax request like this:</p>
  
  <pre><code>$.ajax({
      type:"POST",
      url:"/update_rows.php",
      data:"delete_id="+$(this).attr("row"),
      success:function(data) {
          if(data) {
              //window.location.reload(true);
              //alert(data);
              $(".refresh-after-ajax").load("/cms/modules/mod11/inc/modinclude_admin.php .refresh-after-ajax");
          } else {
              //window.location.reload(true);
          }
  
      }
  });
  </code></pre>
  
  <p>This works and <code>update_rows.php</code> looks like this:</p>
  
  <pre><code>&lt;?php
      require_once($_SERVER["DOCUMENT_ROOT"].'/cms/inc/config.inc.php');
      global $navid,$DB_PRE,$lang_cms;
      $db=new DB();
      $sql='Delete FROM '.$DB_PRE.'_mod_ref_pricing  WHERE id='.intval($_POST['delete_id']);
      $db-&gt;query($sql);
  ?&gt;
  </code></pre>
  
  <p>Now I don't want to use <code>window.location.reload(true);</code>cause I just want to update that container where a row has been deleted. As you cann see I tried with <code>.load()</code>to only reload that <code>&lt;div/&gt;</code>but no chance. <code>alert(data)</code> is empty because I'm not returning anything from <code>update_rows.php</code>but what should I return there to refresh the <code>&lt;div/&gt;</code>?</p>
  
  <p>Thanks for advices!</p>