Combo box isn't working???

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
cturner
Forum Contributor
Posts: 153
Joined: Sun Jul 16, 2006 3:03 am
Location: My computer

Combo box isn't working???

Post by cturner »

I am wanting to display some certain form fields once a selection is made from a combo box. Can someone please have a look at my code and tell me why it isn't working? Here is my code: http://www.blueguminteractive.biz/code.txt. Thanks in advance.
User avatar
iknownothing
Forum Contributor
Posts: 337
Joined: Sun Dec 17, 2006 11:53 pm
Location: Sunshine Coast, Australia

Post by iknownothing »

ever heard of Else If...

Eg.

Code: Select all

if (a == "company) {
//DO STUFF
}
else if (a == "Partnership") {
//DO OTHER STUFF
}
else {
//DO WHATEVER IS LEFT TO DO
}
Also, Im not sure if IE like CSS VISIBILITY, perhaps try CSS DISPLAY instead.
Post Reply