Add selected class to selected code switch element
Compiled js