I have a button that reacts to onclick() at the moment, but I want it to work with jquery.
$('#nupp1').click(function() {
raiseButtonAction(realPlayer, gameState);
});
raisebuttonaction is in another .js This piece of code isn't working. Am I doing something wrong? edit1:
$(document).ready(function() {
$('#nupp1').click(function() {
raiseButtonAction(realPlayer, gameState);
});
});
realPlayerandgameStatecoming from?raisebuttonactionscript being included before this bind script?$(document.ready)?