阅读背景:

检查提交时的正则表达式验证,如果为空则将所有输入字段都集中

来源:互联网 

I want to check the regex validation when I click on the button. It works fine when the button type is submit, but it does not redirect to another page where I have linked the button - however when I change its type to button it redirects to the other page normally and does not check the regex validation. I am also checking if all the input fields are filled, and focusing any empty fields. But I guess something is wrong with the code. I want to check the regex validation when I cli




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

分享到: