Menu
Dear users,
I have a JS switch:
switch(var) {
case 1:
do something 1
break;
case 2:
do something 2
case 1:
case 3:
default:
do other
break;
}
But it doesn’t work as I want. As you can see, I want to execute more than one case if the var == 1, but JS executes only “do something 1”, and I want it executes also “do other”.
How can I do?
Thanks