chathurabuddi/jquery-validation
Composer 安装命令:
composer require chathurabuddi/jquery-validation
包简介
The jQuery Validation Plugin provides drop-in validation for your existing forms, while making all kinds of customizations to fit your application really easy.
README 文档
README
The jQuery Validation Plugin provides drop-in validation for your existing forms, while making all kinds of customizations to fit your application really easy.
Getting Started
Downloading the prebuilt files
Prebuilt files can be downloaded from https://jqueryvalidation.org/
Downloading the latest changes
The unreleased development files can be obtained by:
- Downloading or Forking this repository
- Setup the build
- Run
gruntto create the built files in the "dist" directory
Including it on your page
Include jQuery and the plugin on a page. Then select a form to validate and call the validate method.
<form> <input required> </form> <script src="jquery.js"></script> <script src="jquery.validate.js"></script> <script> $("form").validate(); </script>
Alternatively include jQuery and the plugin via requirejs in your module.
define(["jquery", "jquery.validate"], function( $ ) { $("form").validate(); });
For more information on how to setup a rules and customizations, check the documentation.
Reporting issues and contributing code
See the Contributing Guidelines for details.
IMPORTANT NOTE ABOUT EMAIL VALIDATION. As of version 1.12.0 this plugin is using the same regular expression that the HTML5 specification suggests for browsers to use. We will follow their lead and use the same check. If you think the specification is wrong, please report the issue to them. If you have different requirements, consider using a custom method. In case you need to adjust the built-in validation regular expression patterns, please follow the documentation.
IMPORTANT NOTE ABOUT REQUIRED METHOD. As of version 1.14.0 this plugin stops trimming white spaces from the value of the attached element. If you want to achieve the same result, you can use the normalizer that can be used to transform the value of an element before validation. This feature was available since v1.15.0. In other words, you can do something like this:
$("#myForm").validate({ rules: { username: { required: true, // Using the normalizer to trim the value of the element // before validating it. // // The value of `this` inside the `normalizer` is the corresponding // DOMElement. In this example, `this` references the `username` element. normalizer: function(value) { return $.trim(value); } } } });
License
Copyright © Jörn Zaefferer
Licensed under the MIT license.
chathurabuddi/jquery-validation 适用场景与选型建议
chathurabuddi/jquery-validation 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 1.52k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 02 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「jquery」 「validation」 「Forms」 「validate」 「jquery-plugin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 chathurabuddi/jquery-validation 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 chathurabuddi/jquery-validation 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 chathurabuddi/jquery-validation 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
ConfirmationField is a form field for Atk14 applications. It's like the BooleanField (checkbox) but the ConfirmationField must be ticked.
Field for number with restricted count of digits and decimal places
Yii2 LightBox image galary widget uses Lightbox v2.10.0 by Lokesh Dhakar
HTML and form generation
Build forms from schema
A Laravel Filament Forms slug field.
统计信息
- 总下载量: 1.52k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-03