April 3, 2023 at 1:23 PM #1 Please tell me how to switch two actions many times Code onclick="switch(set, action_1();,action_2(););" action_1();action_2();
April 3, 2023 at 4:29 PM #4 Found a solution that might help someone Code onclick="switch(state,1,2);" if(state == 1 ,action_1(); ,action_2(); );