title: how to check this codeigniter php function working or not that function using in ajax url
body: <p>my script code: </p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
  function changebox(curval,datashow){
      alert(curval);
      $.ajax({
      type:"POST",
      data:"del="+curval,
      url:"&lt;?php echo site_url('grocery/add_to_show');?&gt;",
      success: function(html){
          $('#'+datashow).html(html);
      }
  });
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>the url contain php function</p>
  
  <pre><code>url:"&lt;?php echo site_url('grocery/add_to_show');?&gt;",
  </code></pre>
  
  <p>then how to i confirm this PHP function properly working without returning any error </p>
  
  <p>please give a way to solve this problem</p>