devxlogo

Why does a single text input field submit by Enter, but not more?

Why does a single text input field submit by Enter, but not more?

Question:
When my form has just one text box, I can submit it by pressing theEnter key, but not when there are more text boxes or other controls inthe form.

Any ideas or explanations of this behavior would be appreciated!

Answer:
When my form has just one text box, I can submit it by pressing theEnter key, but not when there are more text boxes or other controls inThe behavior you want can only happen when there is one text input fieldbetween the

tags. Other types of fields can be present(buttons, check-boxes, pop-up lists), but if there is more than one textinput field, the user has to click the button.

devx-admin

Share the Post: