When the text box gets the focus, click Enter to submit and not submit:
In some cases, for convenience, there may be such a need, that is, when the text box in the form to get focus, click Enter ENTER to achieve the form submission function, but
When there is only one input text in the FORM in JSP, press enter to automatically submit the FORM, forminput
A list interface has only one query condition for the input box. When you enter Chinese characters in the input box for the first time,
1, when the form form has only one , press the ENTER key will automatically submit the formIDActionmethod= ' post '> typename/> Form>View CodeAdd a Press Enter will not be automatically submitted, but the page shows a unintelligible input box
Submitted in this manner, when the input value is 22222222, the URL submitted later becomes localhost:3980/input.html?name=222222Some of the notable details include:
When you set the Type=submit, the input control becomes a button with the text
Press enter to submit the form in the text box. The text box form
Sometimes we want to press enter in the input element to submit a form, but sometimes we do not want. For example, you want to directly press the Enter key to submit the form
We should control the Submit button when the form is submitted, and cannot click repeatedly to submit the data. Otherwise there will be redundant duplication of data in the system, causing the system to appear data garbage. jquery is simple enough
text fields, supporting multiple lines of text input
Text entry fields are required when users need to enter large sections of text in a form.
Syntax :
rows= "Number of rows" cols= "columns"> Text
1, tags are in pairs appear, to start, to end.
Sometimes encounter with form form to submit data, and then the same form under the submission of two kinds of information, for example, four input, are in a form, submit two, one is login, one is registered, this time we need to verify, what I
Today, I encountered a very abnormal problem. Because a input box uses suggest, the carriage return event will be used.However, in a form, when I press enter, my form is automatically submitted. I rely on it, but it cannot be changed.
You cannot
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.