I have a form that may or may not contain certain form elements depending on server-side ASP conditions.
With that being said, how can I test to see if a form element is present.
I tried:
AND
To no avail.
Any thoughts?
[red]Tools | Internet Options | Clear History[/red]
With that being said, how can I test to see if a form element is present.
I tried:
Code:
if ( document.getElementById( anElement ) != "undefined")
{
my validation code
}
Code:
if ( document.getElementById( anElement ) != null )
{
my validation code
}
To no avail.
Any thoughts?
[red]Tools | Internet Options | Clear History[/red]