title: JQuery $.post function(data)
body: <p>My code looks like this at the moment:</p>
  
  <pre><code>$("button").click(function(){
      var id = ($(this).val());
  
      $.post('ajax.php', {id: id}, function(data){
          alert(data);
      });
  });
  </code></pre>
  
  <p>ajax.php</p>
  
  <pre><code>&lt;?php echo 'HELLO!'; ?&gt;
  </code></pre>
  
  <p>But it doesn't work. I'm really stuck right now. Can you see any errors in the <code>$.post</code>? I'm 99% sure something is wrong there.</p>