Universal form verification method for js
A general-purpose table and form technology, applied in program control devices and other directions, can solve cumbersome problems, and achieve the effects of improving code sharing, simplifying front-end page development, and reducing code coupling
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0019] As shown in the accompanying drawings, the present invention utilizes the extended attributes of the html form elements, expands the attributes of the form elements, binds data verification rules and error prompts, and completes different form front-end data validations through shared JS functions.
[0020] Described method specifically comprises the following steps:
[0021] The first step is to add html form elements in the normal way;
[0022] The second step is to add the extended attributes checkType and mess to the form element space that needs to be verified. According to the actual data format requirements, write the verification rule identifier into the checkType attribute, and write the error prompt into the mess attribute;
[0023] The third step is to write a JS verification function and define the verification rule type;
[0024] The fourth step is to call the verification function, traverse the form element controls, judge the value in the checkType attri...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com