I have a bog-standard login form - an email text field, a password field and a submit button on an AIR project that\'s using HTML/jQuery. When I hit Enter on the form, the
Try this:
var form = document.formname; if($(form).length > 0) { $(form).keypress(function (e){ code = e.keyCode ? e.keyCode : e.which; if(code.toString() == 13) { formsubmit(); } }) }