title: Jquery with Ajax post not working
body: <p>I am trying to make a simple game and I'm not very good with jQuery. The code I have is:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function(){
      $('#deposit').click(function(){       
          $.ajax({
              type: 'POST',
              url: 'update.php',
              dataType: 'json',
              data: {
                  Money : $('#input_money').val()
              },
              success: function(data){ 
                  $('#display').html(data.value);
              }
          });
      });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>And the display is this:</p>
  
  <pre><code>&lt;input id="input_money" name="input_money" type="text" size="40"&gt;&lt;br&gt;&lt;br&gt;
  &lt;button id="deposit"&gt;Deposit Money&lt;/button&gt;
  &lt;div id="display"&gt;&lt;/div&gt; 
  </code></pre>
  
  <p>For the back end, I am using this:</p>
  
  <pre><code>if(isset($_POST['Money'])){
      $value = $_POST['Money'];   
  } else {
      $value = "";
  }
  echo json_encode(array("value"=&gt;$value));  
  </code></pre>
  
  <p>Can anyone help me out? I plan to add the <code>$value</code> into a database after it shows up on the main page.</p>
  
  <p>Thanks</p>