Greetings. I have an Onblur event in Textbox
:
<asp:TextBox ID="us" runat="server" MaxLength="15" onblur="validar(this.id)" Width="232px"></asp:TextBox>
Then a Label
:
<asp:Label ID="Label1" runat="server" Text="esto es un texto" ></asp:Label>
And a method in javascript:
<script>
function validar(x){
//He intentado con: document.all("Label1").innerText = "Esto es otro texto"; Pero nada
//Incluso document.getElementById("Label1").innerHTML = "Esto es otro texto"; Y tampoco
}
</script>
How can I achieve this by either changing the text directly or enabling it from CSS every time I lose the focus of Textbox
?