|
-
Sep 11th, 2001, 06:15 AM
#1
Thread Starter
Evil Genius
Easy Javascript one
Code:
if (formObj.elements("txtName").value == "") ||
(toUpperCase(formObj.elements("txtName").value) != "TEST USER")
Note the above is on 1 line in my page. I'm trying to check if
a) the textbox has an entry
b) if it says test user
The formobj bit is okay too - that's a document.formname variable.
What's wrong with the above syntax please ?!?!?
-
Sep 11th, 2001, 07:43 AM
#2
Frenzied Member
i think your problem is your ()
try this
if (formObj.elements("txtName").value == "" ||
toUpperCase(formObj.elements("txtName").value) != "TEST USER")
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|