I am unable to clear or change text for a label created in C# using JavaScript. I am able to hide a text box and a drop down list.
Here is the function (placed in the head). The statement for the textbox works fine. The one for the label does not.
<script language="JavaScript>
function Test() { document.Form1.TextBox1.style.visibility="hidden"; document.Form1.Label1.text="";
alert('Changed');
}
</script>
Any suggestion? What should I use in place of Label1.text?
Here is the function (placed in the head). The statement for the textbox works fine. The one for the label does not.
<script language="JavaScript>
function Test() { document.Form1.TextBox1.style.visibility="hidden"; document.Form1.Label1.text="";
alert('Changed');
}
</script>
Any suggestion? What should I use in place of Label1.text?