selectbox improvement

Why are you using two different methods to add class?