Home > Web Front-end > HTML Tutorial > The html form verifies that the certificate type and certificate number match, and verifies the problem_html/css_WEB-ITnose

The html form verifies that the certificate type and certificate number match, and verifies the problem_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:01:15
Original
2023 people have browsed it

The effect is as shown in the figure:


Just select different certificate types, and fill in the content in the following input box, which needs to be verified.

Because the verification of different document types is different. So how to achieve it?


Reply to discussion (solution)

The effect is as follows:


That’s it Select different certificate types and fill in the content in the following input boxes, which need to be verified.

Because the verification of different document types is different. So how to achieve it?


Select the corresponding verification rule through the previously selected verification method. Please refer to the following ideas
var reg = "";//Regular expression verification rule
if (ID card) {
reg = /ID card verification rules/;
}else if(Student ID card){
reg = /Student ID card verification rules/;
}....

Yes ,Thank you so much!

Well, thank you very much!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template