jquery validate 用alert提示错误 . 1[code].jQuery().ready(function() { 2. var validator = jQuery(".form1").validate({ 3. rules: { 4. docTypeId: "required", 5. "uploadFiles[0].file":"required" 6. }, 7. messages: { 8. docTypeId: "请选择****", 9. "uploadFi...
date - validates that a field can be converted to a Date. This validator uses java.text.SimpleDateFormat to parse the date and optionally either a datePattern or datePatternStrict variable can be used. If no pattern is specified the default short date format is assumed. The difference between using the ...
在学习Jquery easyui,目前发现一个问题,不知道如果解决。 目前有两个页面,a.jsp 和 b.jsp 。其中a.jsp中只有一个下拉菜单,用浏览器单独访问a.jsp的时候,是可以正常显示的,请看a.jsp的部分代码: [code] 2. [/code]二、默认校验规则[code](1)required:true 必输字段 (2)remote:"check.php" 使用ajax 方法调用c...
本帖最后由 中关村村草 于 2011-11-04 17:45 编辑 jQuery.validate使用必备 2010-04-15 10:04:09| 分类: jQuery | 标签:validate jquery |字号 订阅 jQuery.validate是一款非常不错的表单验证工具,简单易上手,而且能达到很好的体验效果,虽然说在项目中早已用过,但看到这篇文章写得还是不错的,转载下与大家共同分享。 引自:http://xying.spaces.live.com/ jQuery.validate使用必备 一、用前必备 官方网站...