My code works well, but Dreamweaver code hint says there is a syntax error at line "node.addEvent ...". Can you tell me how to prevent this ? Is there a best way to write it ?
const node = document.getElementById(info);
node.addEventListener("keydown", ({key}) => {
if (key === "Enter") {
$('#submit_'+info).click();
}
});