I want to get an enter event on dynamically created div, What I'm trying to do is :
$('.emojionearea-editor').keypress(function(e){
if(e.which == 13){//Enter key pressed
alert('Enter pressed');
}
});
but it's not working the way it has to, this div .emojionearea-editor
is created on the run time and I'm not able to get it's enter event.