title: Button onclick to click() jquery
body: <p>I have a button that reacts to onclick() at the moment, but I want it to work with jquery.</p>
  
  <pre><code>$('#nupp1').click(function() {
      raiseButtonAction(realPlayer, gameState);
  });
  </code></pre>
  
  <p>raisebuttonaction is in another .js
  This piece of code isn't working.
  Am I doing something wrong?
  edit1:</p>
  
  <pre><code>$(document).ready(function() {
      $('#nupp1').click(function() {
          raiseButtonAction(realPlayer, gameState);
      });
  });
  </code></pre>