how to handle a situation with multiple cases
Goto page Previous 1, 2, 3
|
| View previous topic :: View next topic |
| Author |
Message |
Klimapol Enthusiastic Coder
Joined: 27 May 2006 Posts: 134
| |
kadamat Enthusiastic Coder
Joined: 01 Jun 2006 Posts: 88
|
So, it would be used like: selection = document.frmCheckMe.giveaway.value;
Then switch (selection)
?
Then case "name of item selected" :
Then the stuff I want to happen
Then the next case and so on?
Reply with quote
|
| |
|
|
Gladis Enthusiastic Coder
Joined: 24 May 2006 Posts: 107
| |
kadamat Enthusiastic Coder
Joined: 01 Jun 2006 Posts: 88
| |
Klimapol Enthusiastic Coder
Joined: 27 May 2006 Posts: 134
| |
Gladis Enthusiastic Coder
Joined: 24 May 2006 Posts: 107
|
Im not sure about javascript but after the case "somecrap": you can put { } break
Klimapol, check the link and you see javascript
Reply with quote
|
| |
|
|
|