javascript - Submit Form using ESC Key HTML -


i have form doesn't need submit button. want user press esc key submit form.

how can submit form using esc key?

if want use

$(document).keyup(function(e) {   if (e.keycode == 27) $('#your_form').submit(); }); 

Comments

Popular posts from this blog

multithreading - Exception in Application constructor -

React Native allow user to reorder elements in a scrollview list -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -