diff --git a/components/time.inc b/components/time.inc index e75488d..20f5139 100644 --- a/components/time.inc +++ b/components/time.inc @@ -239,10 +239,13 @@ function webform_expand_time($element) { * Theme a webform time element. */ function theme_webform_time($element) { + $element['hour']['#attributes']['class'] = 'hour'; + $element['minute']['#attributes']['class'] = 'minute'; + // Add error classes to all items within the element. if (form_get_error($element)) { - $element['hour']['#attributes']['class'] = 'error'; - $element['minute']['#attributes']['class'] = 'error'; + $element['hour']['#attributes']['class'] .= 'error'; + $element['minute']['#attributes']['class'] .= 'error'; } $output = '