function clearLabelValue() {var label1 = document.getElementById("<%= lblResults.ClientID %>");
label1.value ="";
}
Hi, I need to clear the label status which is "record saved" after submitting button.I used OnClientClick along with OnClick which is not working.Below is the code:<script type="text/javascript"
function clearLabel() {var label1 = document.getElementById("<%= lblResults.ClientID %>");
label1.value ="";}
asp:Button ID="Button2" runat="server" Text="Submit" onclick="Button2_Click" OnClientClick="clearLabel()";return false;"/>
OnClientClick and onclick not working at the same time.I read some online posts and even tried by using ! before clearLabel().It is not working.