Is it possible to define some global variables above your functions on the same .html page?
<script type="text/javascript">
birthYear = document.getElementById('<%=ddlBirthYear.ClientID %>');
birthMonth = document.getElementById('<%=ddlBirthMonth.ClientID %>');
birthDay = document.getElementById('<%=ddlBirthYear.ClientID %>');
function ValidateCardField(validator, args)
{
if (args.Value.length > 0)
args.IsValid = true;
else
args.IsValid = false;
}
...
I'm getting nulls for the variable values.