-1
function uploadFile(btn) {
if (btn.files.length != 0) {
var test = document.getElementById("<%=btnUpload.ClientID%>");
test.disabled = false;
$(".aspNetDisabled").addClass('enabled');
} else {
var txt = document.getElementById("<%=btnUpload.ClientID%>");
txt.disabled = true;
$(".aspNetDisabled").removeClass('enabled');
}
}
什麼是'btn'?如果它是'',它的'type'是什麼? – Kaiido
什麼是錯誤? – manoj