Give min and max fields a CSS class dynamically.
Show and hide range fields dynamically.