I have a FileUpload control "AttachmentSelecter". When the user change the filename by selecting another file, a Javascript function "IsFileSelected()" triggered to change the color of the "AttachmentSelecter" control. The javascript "IsFileSelected()"
function code is as following:
function IsFileSelected() {
if (document.getElementById("<%=AttachmentsSelecter.ClientID%>").value == "") {
document.getElementById("<%=AttachmentsSelecter.ClientID%>").style.color = "Transparent";
document.getElementById("<%=AttachmentsSelecter.ClientID%>").style.backgroundColor ="White";
}
else {
document.getElementById("<%=AttachmentsSelecter.ClientID%>").style.color = "black";
document.getElementById("<%=A ...
Go to the complete details ...