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

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -