Fix for select input boxes that are styled

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