1. Add
onFocus
event to
TextBox
.
<asp:TextBox id="TextBox1" runat="server" onfocus="EmptyLabel()"></asp:TextBox>
2. Write the
javaScript
function.
<script type="text/javascript">
function EmptyLabel()
{
document.getElementById("lblId").value = "";
}
</script>