validatebox输入验证

$.extend($.fn.validatebox.defaults.rules, {
minLength: {
  validator: function(value, param){
  return value.length >= param[0] & value.length <= param[0];
  },
  message: '请输入3位数的数字'
  }
});

 

<input name="??" class="easyui-validatebox" data-options="validType:'minLength[3]'">

posted @ 2022-11-14 09:54  d-w  阅读(7)  评论(0编辑  收藏  举报