N
Norm via DotNetMonster.com
I have an onchange event which fires when the content of an HTML textbox
changes. My problem is that when I try to compare the content of this textbox
with another HTML textbox using an if statement, I get a Page Error and my
code fails. This has got to be a no brainer. Any help out there for a
clueless newbie?
This works:
function ow8t_onchange()
{
alert("success");
}
This crashes:
function ow8t_onchange()
{
if(crw8t.value != ow8t.value)
{
alert("success");
}
}
changes. My problem is that when I try to compare the content of this textbox
with another HTML textbox using an if statement, I get a Page Error and my
code fails. This has got to be a no brainer. Any help out there for a
clueless newbie?
This works:
function ow8t_onchange()
{
alert("success");
}
This crashes:
function ow8t_onchange()
{
if(crw8t.value != ow8t.value)
{
alert("success");
}
}