I\'m attempting to write a video poker game in Javascript as a way of getting the basics of it down, and I\'ve run into a problem where the jQuery click event handlers are f
.one only fires once for the lifetime of the page
So in case you want to do validation, this is not the right solution, because when you do not leave the page after validation, you never come back. Better to use
$(".bet").on('click',function()
{ //validation
if (validated) {
$(".bet").off('click'); //prevent to fire again when we are not yet off the page
//go somewhere
}
});