PHP Classes

File: public/asset/vendor/jquery-validation/src/additional/maxfiles.js

Recommend this page to a friend!
  Classes of fathurrahman   mnTemplate   public/asset/vendor/jquery-validation/src/additional/maxfiles.js   Download  
File: public/asset/vendor/jquery-validation/src/additional/maxfiles.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: mnTemplate
Route HTTP requests to callback functions
Author: By
Last change:
Date: 1 year ago
Size: 382 bytes
 

Contents

Class file image Download
// Limit the number of files in a FileList. $.validator.addMethod( "maxfiles", function( value, element, param ) { if ( this.optional( element ) ) { return true; } if ( $( element ).attr( "type" ) === "file" ) { if ( element.files && element.files.length > param ) { return false; } } return true; }, $.validator.format( "Please select no more than {0} files." ) );