accept说明:
<input type="file" id="avatar" name="avatar" class="{validate:{required:true,accept:true}}" />
accept接受的是:image (png, jpg, jpeg, gif)
<input type="file" id="cv" name="cv" class="{validate:{required:true,accept:'docx?|txt|pdf'}}" />
accept接受的是:document (doc, docx, txt, pdf)
单选:
<style type="text/css">
label.error { display: none; }
</style>
<fieldset>
<legend>Gender</legend>
<label for="gender_male">
<input type="radio" id="gender_male" value="m" name="gender" validate="required:true" />
Male
</label>
<label for="gender_female">
<input type="radio" id="gender_female" value="f" name="gender"/>
Female
</label>
<label for="gender" class="error">Please select your gender</label>
</fieldset>
下拉菜单:
<select id="cars" name="cars" title="Please select at least two cars, but no more than three" validate="required:true, rangelength:[2,3]" multiple="multiple">
<option value="m_sl">Mercedes SL</option>
<option value="o_c">Opel Corsa</option>
<option value="vw_p">VW Polo</option>
<option value="t_s">Titanic Skoda</option>
</select>
分享到:
相关推荐
jquery.validate.js jquery.validate.js
jquery.validate.1.9.0.min.js jquery.validate.1.12.0.min.js jquery.validate.1.13.1.min.js jquery.validate.1.16.0.min.js jquery.validate.1.14.0.min.js jquery.validate.1.15.1.min.js jquery.validate....
jquery.validate插件为表单提供了强大的验证功能,让客户端表单验证变得更简单,同时提供了大量的定制选项,满足应用程序各种需求。该插件捆绑了一套有用的验证方法,包括 URL 和电子邮件验证,同时提供了一个用来...
jquery.validate.min.js 1.16.0插件,jquery验证
* http://docs.jquery.com/Plugins/Validation * * Copyright (c) 2006 - 2008 Jörn Zaefferer * * $Id: jquery.validate.js 6403 2009-06-17 14:27:16Z joern.zaefferer $ * * Dual licensed under the MIT...
微软的jquery.validate.unobtrusive.js验证插件,可以用来验证单选和多选框的.
jquery.validate.extend.js
jquery 验证表单1.8版本,附加常用地址 https://docs.microsoft.com/en-us/aspnet/ajax/cdn/jquery-validate/cdnjqueryvalidate18
jquery.validate.js表单验证 jquery.validate.messages_cn.js 表单验证中文提示
js插件 jquery-1.11.1.min.js jquery.validate.min.js
jquery.validate.js 和 帮助文档.rar
共两个文件:1、jquery.validate.js 原生jquery表单验证文件 2、jquery.validate.cn.js针对错误信息相关的中文提示(原生提示信息为英文)
jQuery.validate.js+API中文 jquery-validation-1.8.1.zip
jquery.validate表单验证密码完整例子(带密码强度显示)
jquery.validate1.7.js最新版本,除了需要为输入框手工添加很多很多属性(onkeyup, onkeydown等等), 而且还不够通用, 占用服务器资源和网络资源.但是当初也是花费了很久的时间完成的作品. 站在巨人的肩膀上, 让我感觉...
jQuery验证控件jquery.validate.js使用说明+中文API 官网地址:http://bassistance.de/jquery-plugins/jquery-plugin-validation