我需要禁用,而该文件上传提交按钮..Uploadify检查进度
<button type="submit" id="submit_button" class="btn btn-default">Odeslat</button>
JS:
$('#file_upload').uploadify({
'swf' : 'css/uploadify.swf',
'uploader' : 'uploadify.php?galerie=<?php echo $n; ?>',
'onUploadProgress' : function(file) {
$('#submit_button').prop('disabled', true);
}
});
但这不是工作..
编辑
相关CT解决方案:
$('#file_upload').uploadify({
'swf': 'css/uploadify.swf',
'uploader' : 'uploadify.php?galerie=<?php echo $n; ?>',
'onUploadProgress' : function(file) {
$('#submit_button').attr('disabled', 'disabled');
},
'onUploadComplete': function(file) {
$('#submit_button').removeAttr("disabled");
}
});
是否使用jQuery用户界面?如果是这样,可能是该按钮实际上被禁用,它看起来不像是可见的。 – bingo