If your select field is returning the value, is there a reason you want to set the class to the label?
I don’t see anything in your code that would make it not work. Is it adding anything to the body class?
What type of page are you looking at? Is is a single page/post or something else?