Topic: Disable Form Submit FF 2.0} |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Phoenix |
posted 10-18-2008 13:04
Does anyone know how to disable the default behaviour of a form submit when hitting the enter key? Specifically with FF 2.0, as it is not working for this browser. I am doing this: code: if(event.keycode == 13) // do nothing with enter key (select dropdown instead) return false;
|
Paranoid (IV) Inmate From: Norway |
posted 10-18-2008 15:33 |
Bipolar (III) Inmate From: Phoenix |
posted 10-19-2008 05:40
That works. Thanks! |