Good Day all
i am reluctantly maintaining a Classic Asp application that will be re-written in few months to come. i have an issue where i have a Code like this
if(document.frmEntry.optMethod != "undefined")
{
if (document.frmEntry.optMethod.selectedIndex == 0) {
strPrompt=strPrompt+'Please specify the Valuation Method\n';
if ( objFocus == null ) {
objFocus = document.frmEntry.optMethod;
}
}
}
my problem here is that even if document.frmEntry.optMethod is not equal to undefined the code still go into the condition as if it was true. i have attached a proof in my debuger.
http://www.vetauinvest.com/Example/IE_DEBUGGER.png
Thanks