阅读背景:

按Enter重新加载页面而不是提交表单

来源:互联网 

I have a form that takes a ZIP Code input and forwards the user to one of two URLs depending on the input. Everything works great when you click the submit button, however, pressing enter reloads the page, I have gone through about 30 similar forums to no avail. I have tried multiple things including changing the submit button type from button to submit. I have tried several snippets to force the enter key to do what I want but none of them have worked. It just keeps reloading the page. Here is the code that I currently have on the site: I have a form that takes a ZIP Code input and f




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: