5 lines
267 B
JavaScript
5 lines
267 B
JavaScript
|
// 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" ) );
|