try this:-
<script language="javascript" type="text/javascript">
function hideIt() {
document.getElementById('<%=myLabel.ClientID%>').style.display = 'none';
}
</script>
and call from any control as
onkeypress="hideLabel()":-
<asp:TextBox ID="txtEmailAddress" runat="server" Width="200px" CssClass="customtxt" onkeypress="hideLabel()"></asp:TextBox>
Refer:-
http://api.jquery.com/keypress/[
^]