title: Using GET in jQuery to send data to php file
body: <p>I am trying to send a row and column number of the clicked cell via GET method. </p>
  
  <p>to php file, where I can check if this cell contains something or not.</p>
  
  <p>For example that the URL will loke like this: </p>
  
  <p>.php?c=3&amp;r=5</p>
  
  <p>I am using:
  <a href="https://www.w3schools.com/jquery/ajax_get.asp" rel="nofollow noreferrer">https://www.w3schools.com/jquery/ajax_get.asp</a> and I have been trying to send data like it is listed on W3schools: </p>
  
  <p><em>Request "test.php" and send some additional data along with the request (ignore return results):</em></p>
  
  <pre><code>$.get("test.php", { name:"Donald", town:"Ducktown" });
  </code></pre>
  
  <p>I am doing it like this: </p>
  
  <pre><code>$(document).ready(function() {
  $("td").click(function(event) {
  var clickedBtnID = $(this).attr('id'); 
  values=clickedBtnID.split('.');
  var row=values[0];
  var col=values[1];
  
  
  
  $.get("info.php", {"row":row, "col":col});
  </code></pre>
  
  <p>I was looking at some other examples on StackOverFlow, like:
  <a href="https://stackoverflow.com/questions/37649916/how-to-send-data-to-php-file-using-jquery-ajax">How to send data to PHP file using JQuery Ajax?</a></p>
  
  <p>I would like to say it that info.php is the diferent .php file, as the one we are working from. And another thing is that the best way to do this, would be to do it without refreshing the page. So is Ajax call the best way for this? I have tried many different things, but it seems like I can't send the data via GET method. </p>