Skip to main content
deleted 1 characters in body
Source Link
epascarello
  • 207.8k
  • 20
  • 206
  • 246

You need to cancel the action.

event.preventDefault(); 

BUT I believe you can only kill the form submission with keydown, not key upkeyup.

You need to cancel the action.

event.preventDefault(); 

BUT I believe you can only kill the form submission with keydown, not key up.

You need to cancel the action.

event.preventDefault(); 

BUT I believe you can only kill the form submission with keydown, not keyup.

Source Link
epascarello
  • 207.8k
  • 20
  • 206
  • 246

You need to cancel the action.

event.preventDefault(); 

BUT I believe you can only kill the form submission with keydown, not key up.