Giter Club home page Giter Club logo

vali's Introduction

vali.js

中文API地址:http://1029131145.github.io/vali/

使用方法

<!-- 非常简单 -->
<form class="form">
    <input type="text" email="t" vali>
</form>
<script type="text/javascript">
    $(".form").vali();
</script>

v1.4

更新内容
手机号 dl 空属性控制台报错修复
邮箱不完整验证修复

新增vali对象,有以下方法
setPrompt
form
ele
promptHide


v1.3

更新内容
1.输入框成功失败样式 class
2.不显示任何框

以下是新加的8种验证
3.手机号 黑名单
4.HTTP协议的网址格式
5.数字 多少之间
6.最小
7.最大
8.长度 多少之间
9.时间
10.时间and日期

11.提示框自定义


v1.2

更新内容
1.修复了一个Bug,这个Bug导致提示框宽度不跟输入框一样,主要原因是padding and border
2.优化了提示框top属性不准确小Bug,可以通过 disparityH 修改误差


v1.1

更新内容
1.验证银行卡,现在必须得是真实的银行卡才能通过验证
2.验证身份证,现在必须得是真实的身份证才能通过验证
3.日期验证 1.0版本必须是 1996-5-21,现在1996/5/21 也可以通过验证
4.货币验证,小数位设置可以用过元素属性进行设置

<!-- dp is 位数 -->
<input type="text" number="y" dp="3" vali>

v1.0

提供快速验证表单的很强大的控件。由于是初版,问题还有很多,希望大家能多多协助。

vali's People

Contributors

bryant1410 avatar zililuya avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.