title: jQuery Ajax method data parameter send a Number
body: <p>excuse my bad english first,</p>
  
  <p>im using ajax call and the code goes like this :</p>
  
  <pre><code>$.ajax({
              url:'fetch.php',
              type: 'GET',
              **data: { temp : 'counter' },**
              success: function(data){
                  $('#rules2').append(data);  
          }   
  </code></pre>
  
  <p>The problem is that i want the counter to be a number...i gave already set it as 
  var counter = 1;
  but what it does is to just send the string "counter".</p>
  
  <p>Any help for this?</p>
  
  <p>What i want to do is to get some data from the db with the fetch.php file and get that data by the id ...so id is a number and i need to send a number with ajax method.</p>
  
  <p>Thx</p>