how to handle a situation with multiple cases
Goto page Previous 1, 2, 3
|
| View previous topic :: View next topic |
| Author |
Message |
Klimapol
Joined: 27 May 2006 Posts: 134
|
ovigo22, t's also python.
Object full of functions is tasty. |
| |
|
|
|
|
kadamat
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? |
| |
|
|
Gladis
Joined: 24 May 2006 Posts: 108
| |
kadamat
Joined: 01 Jun 2006 Posts: 88
|
| Ah. ha! Thanks. |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
Gladis, Are the javascript tutors or Java tutors.
? |
| |
|
|
Gladis
Joined: 24 May 2006 Posts: 108
|
Im not sure about javascript but after the case "somecrap": you can put { } break
Klimapol, check the link and you see javascript |
| |
|
|
|
|