Disable submit button on error validating input file when using krajee file input plugin

I am using plugins.krajee.com/file-input

, and I cannot find a way to disable the Upload or Submit button on my form when a validation error has occurred eg minImageWidth

.

$('.file').fileinput({
        language: 'en',
        showUpload: false,
        allowedFileExtensions : ['jpg', 'png','gif'],
        maxFileSize:1024,
        minImageWidth:286,
        minImageHeight:322
     });

      

How to use $('.file').fileinput('disable');

when minimum image width parameter returns validation error?

+3
javascript jquery


source to share


No one has answered this question yet

Check out similar questions:

1957
Disable / enable input with jQuery?
768
How to disable submit buttons
757
jQuery disable / enable submit button
151
JQuery Validation plugin: disable validation for specified submit buttons
124
How do I restrict jQuery file types on upload?
7
JQuery disable button (DO NOT CONNECT) until field validates + Validation plugin
2
Krajee file-input submit files to form submit
1
Krajee JqueryPlugin file input - disable validation
1
Krajee file-widget 'upload' method throws an exception
0
disable submit button if there are validation errors in form inputs with jquery



All Articles
Loading...
X
Show
Funny
Dev
Pics