title: how to send parameter in ajax call
body: <p>I have one AJAX call. I need to pass some parameters to my function. This is my AJAX call.</p>
  
  <pre><code>$.ajax({ 
      url: 'lib/function.php',
      data: {
          action: 'getStoreSupplyItems', 
          id: store_id, 
          indent: 1
      },
      success: function(output) {
          //alert(output);
          $('#response').html(output);
      }
  });
  </code></pre>
  
  <p>Here is my back end function definition that I am trying to call:</p>
  
  <pre><code>function getStoreSupplyItems($category = '')
  {
      global $db;
      $data = $_REQUEST;
      $category = (!empty($category) ? ' AND cim.item_group_code IN ("'.$category.'") ' : '');
  
      if ($data['id'] != "") 
      {
          $store = $data['id'];
      } 
      else
      {
          $store = $_SESSION['user']['store']['id'];  
      }
  </code></pre>
  
  <p>How can I pass some arguments to the function? The parameter that I want to pass is something like '12,5,6'.</p>