Fix for #6715

This is a fix for #6715.
It simply uses input_class for selectboxes in the same way as its used on all the other elements.