I have a code like this:
$('.play').on( 'click', function(){ console.log('click'); });
The .play element .play dynamically created using the $('.game').html('<span class="paly">Play</span>') . However, I do not see anything in my console log when I click on this range. What am I doing wrong?
Thanks.
PS: I am using jQuery 1.7.1
source share