为什么按后输入密钥回到默认页面? [英] why after press enter key post back to default page?
问题描述
您好,我在这里有一个问题....
- 我的网页上有一个带有多个按钮的表单页面。
- 按钮,如提交,搜索,删除和更新。
- 一旦我在文本框中插入详细信息,然后按"ENTER"键移动到默认页面而不提交表单。为什么会这样?
- 我无法使用默认按钮和面板中的默认按钮。
- 因为我在面板中放了多个按钮。
这有什么解决方案吗?请帮助我......谢谢。
http://tjvantoll.com/2013/01/01/enter-应该提交 - 表格 - 停止搞乱 - 那个/
你需要学习JavaScript和JQuery,并学习如何使用 事件 听众,比如Keypress活动。
http:/ /www.javascript-coder.com/javascript-form/javascript-form-submit.phtml
最后,您有任何问题,然后您应该发布到以下论坛。
Hello, i have a question here....
- i have a form page in my web with multiple buttons.
- Buttons like submit, search,delete and update.
- once i insert the details in text boxes and and press on 'ENTER' key its moving to default page and not submitting the form. Why is that so?
- i Could not use Default button and also default button in panel.
- Because i put multiple buttons in a panel.
Is that any solution?Please kindly help me on this...Thank You.
http://tjvantoll.com/2013/01/01/enter-should-submit-forms-stop-messing-with-that/
You need to learn JavaScript and JQuery and learn how to use event listeners, like the Keypress event.
http://www.javascript-coder.com/javascript-form/javascript-form-submit.phtml
Lastly, you have anymore questions then you should post to the below forums.
这篇关于为什么按后输入密钥回到默认页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!