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
A better option would be .one() :
The handler is executed at most once per element per event type.
$(".bet").one('click',function() {
//Your function
});
In case of multiple classes and each class needs to be clicked once,
$(".bet").on('click',function() {
//Your function
$(this).off('click'); //or $(this).unbind()
});