not a huge deal at all and might be a valid area of personal preference, but just want to point out that this could be made DRYer by doing something like

```javascript
var style = $("#case_type").is(':invalid') ? 'inline': 'none';
$("#case_type_error").css('display', style);
```