title: Ajax post data format
body: <p>Is it possible to format the data like so?</p>
  
  <pre><code>{name: $('#elementId').text()}
  </code></pre>
  
  <p>I have tried many options, but nothing seems to work. I get ajax success but no data is sent to the server. The return value is null.</p>
  
  <pre><code>$.ajax({
      type: "POST",
      url: "ReportTest.php",
      data: {machineId: $('#FormOverviewMachineID').text()},
      success: function(output){
          console.log(jQuery.parseJSON(output));
      }
  })
  </code></pre>
  
  <p>Any help on this would be fantastic. I feel like I'm pretty close.</p>
  
  <p>Thanks.</p>
  
  <p><em>Edit:</em></p>
  
  <p>My PHP is like so (for testing):</p>
  
  <pre><code>$MachineID = $_POST['machineID'];
  print_r($MachineID);
  </code></pre>
  
  <p>I can also print the values to the console before using them in the ajax request like so</p>
  
  <pre><code>machineIdTest = $('#FormOverviewMachineID').text();
  console.log("MachineID: "+machineIdTest);
  </code></pre>
  
  <p>This returns the value fine.</p>
  
  <p><em><strong>Final Edit</em></strong></p>
  
  <p>Okay okay, I was dumb but thanks for the responses.</p>
  
  <p>Typo: <strong>machineId</strong> =/= <strong>machineID</strong></p>
  
  <p>And thanks for the mention about parsing the response in JSON.</p>
  
  <p>Cheers everyone!</p>