89
rated 0 times
[
90]
[
1]
/ answers: 1 / hits: 72982
/ 14 Years ago, tue, january 4, 2011, 12:00:00
I am simply trying to store a label in a variable in javascript but for some reason this isn't working with document.getElementById('control');
. I know my javascript is linking to my html file fine because everything else works.
Here is my javascript code:
function performEvapCooledCircuit(txt)
{
var error = document.getElementById('lblError');
if (txt.value == null || isNaN(txt.value))
{
error.style.visibility = visible;
}
}
Here is the html code for my label:
<asp:Label ID=lblError class=NormLabel runat=server
style=color:red; visibility:hidden; Text=Invalid Input.></asp:Label>
I am getting an error that says object expected??
More From » asp.net