I have a input tag which is created dynamically. I want to listen for it's enter key keyup
. I searched the internet and found only JQUERY solutions. I prefer Vanilla Javascirpt.
I have tried the following code, which seems not to work because, Ii cant select the specific element
document.addEventListener("keyup", function(event) {
if (event.keyCode === 13) {
}
});
Thanks, Rob Wilson