|
-
May 4th, 2002, 10:22 AM
#1
Thread Starter
Frenzied Member
Setting visibility of text field in JS
I want to set the visibility of a text field from a function in JS. I have tried this, but the code is not valid. What could be wrong?
[code]
function test() {
if (matval=="35") {
document.navform.text1.style.visibility = hidden;
} else {
document.navform.text1.style.visibility = visible;
}
}
-
May 4th, 2002, 10:33 AM
#2
Fanatic Member
Put quotes around the property values: "visible" and "hidden".
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
|