javascript - PhoneGap catch 'Enter' pressed event for iPhone and android on anchor tag -


i want know how catch 'enter' pressed event using phonegap.

i have form anchor tag. how catch when user has pressed "enter" in keyboard. have write javascrpt

<head> <script  language="javascript"> $("a.submit").click(function () {   if(window.event.keycode == 13)    {      alert(window.event.keycode);    } } </script></head> <body> <a id="submit" href="abc.html" class="abc"> </body> 


Comments

Popular posts from this blog

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -