Disable submit button on file input validation error using krajee file-input plugin

时间:2015-06-20 09:40:30

标签: javascript jquery

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?

0 个答案:

没有答案