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
I was having this problem with a dynamically generated link:
$(document).on('click', '#mylink', function({...do stuff...});
I found replacing document with 'body' fixed the issue for me:
document
'body'
$('body').on('click', '#mylink', function({...do stuff...});