title: $.post jQuery send post data
body: <p>I have seen so many questions and answers about this here, but I can't get it work.  What am I doing wrong ?</p>
  
  <pre><code>function addVote(trainingID , guiderID , StudentID){    
      $.ajax({
          type: "POST",
          url: "../server/addVote.php",
          data: { "trainingsID":  trainingID , "StudentID":  StudentID  ,"GuiderID":  guiderID  }
      }); 
  }
  </code></pre>
  
  <p>I also tried to send it as a string, but it is still not working.</p>
  
  <p>If I run it like this it works, but I want to use the previous version.</p>
  
  <pre><code>$.ajax({
      type: "POST",
      url: "../server/addVote.php?trainingsID="+trainingID+"&amp;StudentID="+StudentID+"&amp;GuiderID="+guiderID
  }); 
  </code></pre>