I am trying to validate a textbox field for a value that is not empty. I am using the following code. I added the code { alert(lcValue) ; } to test the value being passed. When the function fires, the alert "undefined" is displayed. Any help is greatly appreciated.
Greg Grewe
West Chester, Ohio
Code:
<script language="javascript">
function CheckValue(lcValue)
{
{ alert(lcValue) ; }
if (lcValue == " ")
{
return false
}
else
{
return true
}
}
</SCRIPT>
...
<tr><td align=right>Minister:<td><input type=text name=minister size=50 value=' ' onblur="return CheckValue(minister.Value)">
Greg Grewe
West Chester, Ohio