first commit
This commit is contained in:
4
plugins/jquery-validation/additional/strippedminlength.js
vendored
Normal file
4
plugins/jquery-validation/additional/strippedminlength.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
// TODO check if value starts with <, otherwise don't try stripping anything
|
||||
$.validator.addMethod( "strippedminlength", function( value, element, param ) {
|
||||
return $( value ).text().length >= param;
|
||||
}, $.validator.format( "Please enter at least {0} characters" ) );
|
||||
Reference in New Issue
Block a user