Nice Validator Versions Save

Simple, smart and pleasant validation solution.

1.1.5

4 years ago

Fixed

  • Fixed required(fn) message issue

1.1.4

6 years ago

Fixed

  • Bug of rule "match" with "display" options ( #267 )

1.1.3

6 years ago

Improvements

  • Now custom rules are compatible with other unknown return value types

Fixed

  • Rollback some changes for style issue and build issue
  • Js error in IE8

1.1.2

6 years ago

Improvements

  • Be careful to fix the bootstrap input box style

Fixed

  • radio binding rules and target to the general DOM repeatedly insert the message

1.1.1

6 years ago

Improvements

  • No longer limit the target element must be inside the form
  • Support validation input box without id and name

Changes

  • Removed aria-required attribute

1.0.10

7 years ago

Fixed

#255 Fix data-target does'nt take effect in some cases

1.0.9

7 years ago

Fixed

#251 Javascript throws an exception when the input that has no validation rule loses focus

1.0.8

7 years ago

Fixed

Fixed IE7 compatible with jQuery 1.7 Fixed js initialization parameters are incorrect #242

1.0.7

7 years ago

FIxed

fixed contentEditable judgement

1.0.6

7 years ago

New

Now you can use the "showmsg" event to do the same thing as the "showMsg" method.

// before
$("#form1").validator("showMsg", {
    "mobile": "This phone number has been used",
    "email": "Email is required"
})

// after
$("#form1").trigger("showmsg", [{
    "mobile": "This phone number has been used",
    "email": "Email is required"
}])

Fixed

  • Fixes in some cases the valid callback is not triggered for the first time
  • Fixed the use of the function target does not come into effect
  • Fixed IE7 compatibility issues
  • Fixed this.isValid is not accurate in validation callback
  • Fixed Requirejs usage. Now support the following configuration for requirejs:
requirejs.config({
    paths: {
        jquery: 'http://cdn.jsdelivr.net/jquery/1.12.3/jquery.min',
        validator: 'path/to/nice-validator/local/zh-CN'
    },
    shim: {
        validator: ['path/to/nice-validator/jquery.validator.js?css']
    }
});

require(['jquery', 'validator'], function($){
    $('#form1').validator();
});
  • Avoid JavaScript keyword
  • degrade uglify to 1.5.4