added support for multiple css classes on selectboxes

Most forms are css styled so select boxes can have any number of css
classes.
Replaced class equality with jQuery's hasClass.