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

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -