"diong" <di**********@mail.codecomments.com> wrote in message
news:di**********@mail.codecomments.com...
:
: please help! i have a form validation problem.
:
: here is the code
:
: if ((form1.Decline.value=='') && (form1.OfficeStatus == "YES") &&
: (form1.FloorBldgDiscStat.value=='')) {
: alert('Enter value on floorbldgstat')
: return (false);
: }
:
:
: This validation does not work when i try to update my asp page it
: should prompt the alert msg. My OfficeStatus field is a dropdown with a
: value of "YES" and "NO". What i should i use to get the value "YES" in
: javascript. Single equal sign(=) or double equal sign (==), and another
: one is what should i use in enclosing the "YES" value. '' or "".
This is not ASP related and should be followed up on in a j(ava)script NG.
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center -
http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation -
http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library -
http://msdn.microsoft.com/library/default.asp