I've already checked that .
Here is sample of the HTML
<ul>
<li id="unLi" class="unLi"><input class="text" id="userName" type="tex
+t" maxlength="15" /></li>
<li class="blank"></li>
<li id="pwLi" class="pwLi"><input class="text" id="pcPassword" type="p
+assword" maxlength="15"/></li>
</ul>
I think that the parameters are passed to JavaScript function and I'm not passing them properly because the script pass them to the html form and I'm not sure if it passes them to the function as well
unction CheckUserPswInvalid()
{
var userName = $("userName");
var pcPassword = $("pcPassword");
if(!CheckUserPswChars(userName.value))
{
userName.select();
userName.focus();
return false;
}
if(!CheckUserPswChars(pcPassword.value))
{
pcPassword.select();
pcPassword.focus();
return false;
}
return true;
}
|