jQuery - Post and reply
<p>Im attempting to add voteup/votedown to one of my sites, however Im having a few problems:</p>

<p>Firstly here is my jQuery:</p>

<pre><code>j(".voteup").click(function(){ // when people click an up button
  j("div#response").show().html('&lt;h2&gt;voting, please wait...&lt;/h2&gt;'); // show wait message
    itemID = j(this).parent('div').attr('id');; // get post id
    alert(itemID);

    j.post(voteup.php,{id:itemID},function(response){ // post to up script
      j("div#response").html(response).hide(3000); // show response
  });

  j(this).attr({"disabled":"disabled"}); // disable button
});
</code></pre>

<p>My voteup.php file is:</p>

<pre><code>&lt;?php

$id=$_POST['itemID'];

echo '&lt;h2&gt;PHP Response: You voted post '.$id.' up&lt;/h2&gt;';

?&gt;
</code></pre>

<p>However It doesnt appear to be working, the alert comes through with the post ID but nothing from then on. The $id doesnt get echo'd.</p>

<p>Any ideas?</p>
