SyntaxFix
Write A Post
Hire A Developer
Questions
You could listen to the 'keydown' event and then check for an enter key.
'keydown'
Your handler would be like:
function (e) { if (13 == e.keyCode) { ... do whatever ... } }