dealing with autocomplete fields is a royal pain! Since you never know what the user has in the autocomplete list, it's even more painful!
I'd hope there are more fields at the end of the form that would trip up during the submit validation, thus still allowing enter... but the kluges to capture the enter key would be needed for the final field. keypress does have it's limited uses! On 3/26/07, Shelane Enos <[EMAIL PROTECTED]> wrote:
The reason being that when I have an autocomplete field the user will start type something in the field and can arrow down and hit enter when on the selected item. However, if they have "outtyped" the field and there is no option select (none returned in the autocomplete) they are hitting enter by habit from that field and inadvertently submitting the form. So really, I only need it disabled so long as they're in the autocomplete field. On 3/26/07 5:07 PM, "Mike Alsup" <[EMAIL PROTECTED]> wrote: >> Except that they'll need to submit the form when the click the submit >> button. I just don't want them submitted the form when they hit enter on >> the keyboard. > > But that is the default and *expected* behavior. Is there a good > reason to intentionally alter standard behavior? > > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
-- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/