Hello im using iCheck(http://icheck.fronteed.com/) The problem is, when i click the checkbox, input-file button works but appears to be "disabled" but it still in gray color, not in green.
I'm using two events, ifChecked/ifUnchecked.
I tried attr, removeclass, addclass before, using instead of .prop();
<input id="Archivo" name="Archivo" type="file" accept=".pdf,.doc" disabled />
$("#Archivo").fileinput({
language: "es",
browseClass: "btn btn-primary",
showCaption: true,
showRemove: false,
showUpload: false,
browseLabel: " Buscar",
allowedFileExtensions: ["pdf", "doc"],
elErrorContainer: "#divErrorImagen",
maxFileSize: 122880
});
$('input').on('ifChecked', function (event) {
console.log("Checked OK")
$('#Archivo').prop("disabled", false);
});
$('input').on('ifUnchecked', function (event) {
console.log("Unchecked OK")
$('#Archivo').prop("disabled", true);
});
Try using fileinput plugin disable and enable methods