I have the following piece of javascript code which evaluates if the value passed into a form is a valid date or not. The code works fine in IE and Netscape 4.75, but it doesn't in Netscape 6.2.
What can I do to make my code compatible to all three browser versions?
<code>
isDate(document.forms[sForm].elements["qq_yyyy"+sLife].value, document.forms[sForm].elements["qq_mm"+sLife].value, document.forms[sForm].elements["qq_dd"+sLife].value)
</code>
returns true when a valid date is passed in
returns false otherwise.
Any help is much appreciated
Thanks
jlawler
What can I do to make my code compatible to all three browser versions?
<code>
isDate(document.forms[sForm].elements["qq_yyyy"+sLife].value, document.forms[sForm].elements["qq_mm"+sLife].value, document.forms[sForm].elements["qq_dd"+sLife].value)
</code>
returns true when a valid date is passed in
returns false otherwise.
Any help is much appreciated
Thanks
jlawler