Smarter forms in regards to ENTER key |
It'd be lovely if a "smarter forms" handling in regards to the ENTER key could be added, with or without the form builder, and purely optional (of course).
By "smarter forms" I mean that ENTER in an input field quite frequently should not submit the form, but either stay in the current field, or move to the next (visible) field (or radio/checkbox) as it does with the TAB key. (This obviously can't be done in a TEXTAREA field) -joho (09-20-2023, 02:09 AM)JustJohnQ Wrote: Check this out: Thanks. It's an interesting thread, but very jQuery oriented. I try to use as much "pure JS" as possible. My main point was that I think this would be something quite a lot of people would want, and it'd be nice to have it as part of CI. I did roll my own code for this eventually. It looks something like this: Code: <!-- Start me up --> I guess this would work as some sort of generic handler. You'd obviously need to add code for the 'Esc' key do emulate your 'Cancel' button. -joho
what about this version
Code: (() => {
Learning Codeigniter
Sure, whatever floats your boat :-) I was merely trying to explain what I meant.
-joho |
Welcome Guest, Not a member yet? Register Sign In |