Set the selected field as a class