Replace the switch-case with one single jQuery select.