title: req.body for ID is always undefined but my client side is getting the right value by jQuery .click() call
body: <p>I swear it was working few days ago, so this behavior is really strange for me. Let me show you my code on client side</p>
  
  <pre><code>$(document).ready(function() {
      $("button").click(function() {
         alert(event.currentTarget.id+"------"+event.currentTarget.value);
         $.post( "/vote", {id:event.currentTarget.id,count:event.currentTarget.value}, $(this).serialize(),
             function(res) {
             }
         );
      })                  
  })                      
  </code></pre>
  
  <p>As you can see, I tried to passed both <code>id</code> and <code>value</code> back to server once the button clicked. So far everything here is good because I can see the alert pop-up on screen with the correct id number and value <code>(Output example -&gt; aaa------23)</code>. Now take a look on my server side code.</p>
  
  <pre><code>app.post('/vote', function(req, res) {
      var id = req.body.id;
      var count = req.body.count;
  
      console.log("id: " + id);
      console.log("count: " + count);
  
      res.sendStatus(200);
      res.end();
  });
  </code></pre>
  
  <p>When execute to the line <code>var id = req.body.id</code>, the system returns </p>
  
  <blockquote>
    <p><code>TypeError: Cannot read property id of undefined</code>.</p>
  </blockquote>
  
  <p><code>count</code> will have the same result.</p>
  
  <p>Is there anything obvious I am missing here? Because I swear it was working before and I haven't touch this part of the code since then. Thanks for the help.</p>