I am using plugins.krajee.com/file-input
and I can't find a way of disabling the upload or submit button of my form when a validation error occurs like minImageWidth
is exceeded.
$('.file').fileinput({
language: 'en',
showUpload: false,
allowedFileExtensions : ['jpg', 'png','gif'],
maxFileSize:1024,
minImageWidth:286,
minImageHeight:322
});
How do I use $('.file').fileinput('disable');
when image width minimum setting returns the validation error?